llvm-for-llvmta/tools/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp

17 lines
240 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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;