summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp
blob: 2bcbe269e1229b384f8fcc5c96e36302ced2c907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

// <rdar://problem/8296180>
typedef int pid_t;
namespace ns {
  typedef int pid_t;
}
using namespace ns;
pid_t x;

struct A { };
namespace ns {
  typedef ::A A;
}
A a;
OpenPOWER on IntegriCloud