Richard Smith | 309271b | 2014-03-04 00:21:14 +0000 | [diff] [blame] | 1 | namespace RedeclAcrossImport { |
2 | enum E { e }; | ||||
3 | } | ||||
4 | |||||
Richard Smith | 961eae5 | 2014-03-25 01:14:22 +0000 | [diff] [blame] | 5 | namespace AddAndReexportBeforeImport { |
6 | struct S {}; | ||||
7 | extern struct S t; | ||||
8 | } | ||||
9 | |||||
Douglas Gregor | c50d492 | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 10 | @import namespaces_top; |
Douglas Gregor | e57e752 | 2012-01-07 09:11:48 +0000 | [diff] [blame] | 11 | |
Richard Smith | 309271b | 2014-03-04 00:21:14 +0000 | [diff] [blame] | 12 | namespace RedeclAcrossImport { |
13 | E x = e; | ||||
14 | } | ||||
15 | |||||
Richard Smith | 645d755 | 2013-02-07 03:37:08 +0000 | [diff] [blame] | 16 | float &global(float); |
17 | float &global2(float); | ||||
18 | |||||
19 | namespace LookupBeforeImport { | ||||
20 | float &f(float); | ||||
21 | } | ||||
22 | |||||
Douglas Gregor | e57e752 | 2012-01-07 09:11:48 +0000 | [diff] [blame] | 23 | namespace N1 { } |
24 | |||||
25 | namespace N1 { | ||||
26 | float& f(float); | ||||
27 | } | ||||
28 | |||||
29 | namespace N2 { | ||||
30 | float& f(float); | ||||
31 | } | ||||
Douglas Gregor | cfe7dc6 | 2012-01-09 17:30:44 +0000 | [diff] [blame] | 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 | } | ||||
Douglas Gregor | 9b47f94 | 2012-01-09 17:38:47 +0000 | [diff] [blame] | 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 | } | ||||
Douglas Gregor | 540fd81 | 2012-01-09 18:07:24 +0000 | [diff] [blame] | 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 | } | ||||
Richard Smith | 696e812 | 2015-07-08 21:15:32 +0000 | [diff] [blame] | 74 | |
75 | namespace Empty {} |