xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/Inputs/namespaces.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Header for PCH test namespaces.cpp
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc namespace N1 {
4*f4a2713aSLionel Sambuc   typedef int t1;
5*f4a2713aSLionel Sambuc }
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc namespace N1 {
8*f4a2713aSLionel Sambuc   typedef int t2;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc   void used_func();
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc   struct used_cls { };
13*f4a2713aSLionel Sambuc }
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc namespace N2 {
16*f4a2713aSLionel Sambuc   typedef float t1;
17*f4a2713aSLionel Sambuc 
18*f4a2713aSLionel Sambuc   namespace Inner {
19*f4a2713aSLionel Sambuc     typedef int t3;
20*f4a2713aSLionel Sambuc   };
21*f4a2713aSLionel Sambuc }
22*f4a2713aSLionel Sambuc 
23*f4a2713aSLionel Sambuc namespace {
anon()24*f4a2713aSLionel Sambuc   void anon() { }
25*f4a2713aSLionel Sambuc   class C;
26*f4a2713aSLionel Sambuc }
27*f4a2713aSLionel Sambuc 
28*f4a2713aSLionel Sambuc namespace N3 {
29*f4a2713aSLionel Sambuc   namespace {
30*f4a2713aSLionel Sambuc     class C;
31*f4a2713aSLionel Sambuc   }
32*f4a2713aSLionel Sambuc }
33*f4a2713aSLionel Sambuc 
34*f4a2713aSLionel Sambuc namespace Alias1 = N2::Inner;
35*f4a2713aSLionel Sambuc 
36*f4a2713aSLionel Sambuc using namespace N2::Inner;
37*f4a2713aSLionel Sambuc 
38*f4a2713aSLionel Sambuc extern "C" {
39*f4a2713aSLionel Sambuc   void ext();
40*f4a2713aSLionel Sambuc }
41*f4a2713aSLionel Sambuc 
42*f4a2713aSLionel Sambuc inline namespace N4 {
43*f4a2713aSLionel Sambuc   struct MemberOfN4;
44*f4a2713aSLionel Sambuc }
45