xref: /llvm-project/clang/test/Modules/Inputs/namespaces-right.h (revision 696e812bb3f7eb03b97a624b8ab487bb70e8f600)
1c50d4924SDouglas Gregor @import namespaces_top;
2e57e752bSDouglas Gregor 
3645d755dSRichard Smith double &global(double);
4645d755dSRichard Smith double &global2(double);
5645d755dSRichard Smith 
6645d755dSRichard Smith namespace LookupBeforeImport {
7645d755dSRichard Smith   double &f(double);
8645d755dSRichard Smith }
9645d755dSRichard Smith 
10e57e752bSDouglas Gregor namespace N2 { }
11e57e752bSDouglas Gregor 
12e57e752bSDouglas Gregor namespace N2 { }
13e57e752bSDouglas Gregor 
14e57e752bSDouglas Gregor namespace N2 { }
15e57e752bSDouglas Gregor 
16e57e752bSDouglas Gregor namespace N2 { }
17e57e752bSDouglas Gregor 
18e57e752bSDouglas Gregor namespace N2 {
19e57e752bSDouglas Gregor   double& f(double);
20e57e752bSDouglas Gregor }
21e57e752bSDouglas Gregor 
22e57e752bSDouglas Gregor namespace N3 {
23e57e752bSDouglas Gregor   double& f(double);
24e57e752bSDouglas Gregor }
25e57e752bSDouglas Gregor 
26cfe7dc6bSDouglas Gregor namespace N5 {
27cfe7dc6bSDouglas Gregor   double &f(double);
28cfe7dc6bSDouglas Gregor }
29cfe7dc6bSDouglas Gregor 
30cfe7dc6bSDouglas Gregor namespace N6 {
31cfe7dc6bSDouglas Gregor   double &f(double);
32cfe7dc6bSDouglas Gregor }
33cfe7dc6bSDouglas Gregor 
34cfe7dc6bSDouglas Gregor namespace N7 {
35cfe7dc6bSDouglas Gregor   double &f(double);
36cfe7dc6bSDouglas Gregor }
379b47f941SDouglas Gregor 
389b47f941SDouglas Gregor namespace N8 {
399b47f941SDouglas Gregor   int &f(int);
409b47f941SDouglas Gregor }
419b47f941SDouglas Gregor 
429b47f941SDouglas Gregor namespace N9 {
439b47f941SDouglas Gregor   int &f(int);
449b47f941SDouglas Gregor }
459b47f941SDouglas Gregor 
469b47f941SDouglas Gregor namespace N10 {
479b47f941SDouglas Gregor   int &f(int);
489b47f941SDouglas Gregor }
49540fd813SDouglas Gregor 
50540fd813SDouglas Gregor 
51540fd813SDouglas Gregor 
52540fd813SDouglas Gregor 
53540fd813SDouglas Gregor 
54540fd813SDouglas Gregor 
55540fd813SDouglas Gregor 
56540fd813SDouglas Gregor namespace N11 {
57540fd813SDouglas Gregor   namespace {
58540fd813SDouglas Gregor     class Foo;
59540fd813SDouglas Gregor   }
60540fd813SDouglas Gregor   void consumeFoo(Foo*);
61540fd813SDouglas Gregor }
62540fd813SDouglas Gregor 
63540fd813SDouglas Gregor namespace N12 {
64540fd813SDouglas Gregor   namespace {
65540fd813SDouglas Gregor     class Foo;
66540fd813SDouglas Gregor   }
67540fd813SDouglas Gregor   void consumeFoo(Foo*);
68540fd813SDouglas Gregor }
69*696e812bSRichard Smith 
70*696e812bSRichard Smith namespace Empty {}
71