xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/Inputs/namespaces-left.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc namespace RedeclAcrossImport {
2*0a6a1f1dSLionel Sambuc   enum E { e };
3*0a6a1f1dSLionel Sambuc }
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc namespace AddAndReexportBeforeImport {
6*0a6a1f1dSLionel Sambuc   struct S {};
7*0a6a1f1dSLionel Sambuc   extern struct S t;
8*0a6a1f1dSLionel Sambuc }
9*0a6a1f1dSLionel Sambuc 
10f4a2713aSLionel Sambuc @import namespaces_top;
11f4a2713aSLionel Sambuc 
12*0a6a1f1dSLionel Sambuc namespace RedeclAcrossImport {
13*0a6a1f1dSLionel Sambuc   E x = e;
14*0a6a1f1dSLionel Sambuc }
15*0a6a1f1dSLionel Sambuc 
16f4a2713aSLionel Sambuc float &global(float);
17f4a2713aSLionel Sambuc float &global2(float);
18f4a2713aSLionel Sambuc 
19f4a2713aSLionel Sambuc namespace LookupBeforeImport {
20f4a2713aSLionel Sambuc   float &f(float);
21f4a2713aSLionel Sambuc }
22f4a2713aSLionel Sambuc 
23f4a2713aSLionel Sambuc namespace N1 { }
24f4a2713aSLionel Sambuc 
25f4a2713aSLionel Sambuc namespace N1 {
26f4a2713aSLionel Sambuc   float& f(float);
27f4a2713aSLionel Sambuc }
28f4a2713aSLionel Sambuc 
29f4a2713aSLionel Sambuc namespace N2 {
30f4a2713aSLionel Sambuc   float& f(float);
31f4a2713aSLionel Sambuc }
32f4a2713aSLionel Sambuc 
33f4a2713aSLionel Sambuc 
34f4a2713aSLionel Sambuc 
35f4a2713aSLionel Sambuc 
36f4a2713aSLionel Sambuc 
37f4a2713aSLionel Sambuc namespace N5 {
38f4a2713aSLionel Sambuc   int &f(int);
39f4a2713aSLionel Sambuc }
40f4a2713aSLionel Sambuc 
41f4a2713aSLionel Sambuc namespace N6 {
42f4a2713aSLionel Sambuc   int &f(int);
43f4a2713aSLionel Sambuc }
44f4a2713aSLionel Sambuc 
45f4a2713aSLionel Sambuc namespace N7 {
46f4a2713aSLionel Sambuc   int &f(int);
47f4a2713aSLionel Sambuc }
48f4a2713aSLionel Sambuc 
49f4a2713aSLionel Sambuc namespace N8 {
50f4a2713aSLionel Sambuc   int &f(int);
51f4a2713aSLionel Sambuc }
52f4a2713aSLionel Sambuc 
53f4a2713aSLionel Sambuc namespace N9 {
54f4a2713aSLionel Sambuc   int &f(int);
55f4a2713aSLionel Sambuc }
56f4a2713aSLionel Sambuc 
57f4a2713aSLionel Sambuc namespace N10 {
58f4a2713aSLionel Sambuc   int &f(int);
59f4a2713aSLionel Sambuc }
60f4a2713aSLionel Sambuc 
61f4a2713aSLionel Sambuc namespace N11 {
62f4a2713aSLionel Sambuc   namespace {
63f4a2713aSLionel Sambuc     class Foo;
64f4a2713aSLionel Sambuc   }
65f4a2713aSLionel Sambuc   Foo *getFoo();
66f4a2713aSLionel Sambuc }
67f4a2713aSLionel Sambuc 
68f4a2713aSLionel Sambuc namespace N12 {
69f4a2713aSLionel Sambuc   namespace {
70f4a2713aSLionel Sambuc     class Foo;
71f4a2713aSLionel Sambuc   }
72f4a2713aSLionel Sambuc   Foo *getFoo();
73f4a2713aSLionel Sambuc }
74