Douglas Gregor | c50d492 | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 1 | @import namespaces_top; |
Douglas Gregor | e57e752 | 2012-01-07 09:11:48 +0000 | [diff] [blame] | 2 | |
Richard Smith | 645d755 | 2013-02-07 03:37:08 +0000 | [diff] [blame^] | 3 | float &global(float); |
4 | float &global2(float); | ||||
5 | |||||
6 | namespace LookupBeforeImport { | ||||
7 | float &f(float); | ||||
8 | } | ||||
9 | |||||
Douglas Gregor | e57e752 | 2012-01-07 09:11:48 +0000 | [diff] [blame] | 10 | namespace N1 { } |
11 | |||||
12 | namespace N1 { | ||||
13 | float& f(float); | ||||
14 | } | ||||
15 | |||||
16 | namespace N2 { | ||||
17 | float& f(float); | ||||
18 | } | ||||
Douglas Gregor | cfe7dc6 | 2012-01-09 17:30:44 +0000 | [diff] [blame] | 19 | |
20 | |||||
21 | |||||
22 | |||||
23 | |||||
24 | namespace N5 { | ||||
25 | int &f(int); | ||||
26 | } | ||||
27 | |||||
28 | namespace N6 { | ||||
29 | int &f(int); | ||||
30 | } | ||||
31 | |||||
32 | namespace N7 { | ||||
33 | int &f(int); | ||||
34 | } | ||||
Douglas Gregor | 9b47f94 | 2012-01-09 17:38:47 +0000 | [diff] [blame] | 35 | |
36 | namespace N8 { | ||||
37 | int &f(int); | ||||
38 | } | ||||
39 | |||||
40 | namespace N9 { | ||||
41 | int &f(int); | ||||
42 | } | ||||
43 | |||||
44 | namespace N10 { | ||||
45 | int &f(int); | ||||
46 | } | ||||
Douglas Gregor | 540fd81 | 2012-01-09 18:07:24 +0000 | [diff] [blame] | 47 | |
48 | namespace N11 { | ||||
49 | namespace { | ||||
50 | class Foo; | ||||
51 | } | ||||
52 | Foo *getFoo(); | ||||
53 | } | ||||
54 | |||||
55 | namespace N12 { | ||||
56 | namespace { | ||||
57 | class Foo; | ||||
58 | } | ||||
59 | Foo *getFoo(); | ||||
60 | } |