1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4// <rdar://problem/8296180>
5typedef int pid_t;
6namespace ns {
7  typedef int pid_t;
8}
9using namespace ns;
10pid_t x;
11
12struct A { };
13namespace ns {
14  typedef ::A A;
15}
16A a;
17