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