blob: 5badf62764b6b10cf86bdd2f567e6db2ab40cbb9 [file] [log] [blame]
Richard Smith309271b2014-03-04 00:21:14 +00001namespace RedeclAcrossImport {
2 enum E { e };
3}
4
Richard Smith961eae52014-03-25 01:14:22 +00005namespace AddAndReexportBeforeImport {
6 struct S {};
7 extern struct S t;
8}
9
Douglas Gregorc50d4922012-12-11 22:11:52 +000010@import namespaces_top;
Douglas Gregore57e7522012-01-07 09:11:48 +000011
Richard Smith309271b2014-03-04 00:21:14 +000012namespace RedeclAcrossImport {
13 E x = e;
14}
15
Richard Smith645d7552013-02-07 03:37:08 +000016float &global(float);
17float &global2(float);
18
19namespace LookupBeforeImport {
20 float &f(float);
21}
22
Douglas Gregore57e7522012-01-07 09:11:48 +000023namespace N1 { }
24
25namespace N1 {
26 float& f(float);
27}
28
29namespace N2 {
30 float& f(float);
31}
Douglas Gregorcfe7dc62012-01-09 17:30:44 +000032
33
34
35
36
37namespace N5 {
38 int &f(int);
39}
40
41namespace N6 {
42 int &f(int);
43}
44
45namespace N7 {
46 int &f(int);
47}
Douglas Gregor9b47f942012-01-09 17:38:47 +000048
49namespace N8 {
50 int &f(int);
51}
52
53namespace N9 {
54 int &f(int);
55}
56
57namespace N10 {
58 int &f(int);
59}
Douglas Gregor540fd812012-01-09 18:07:24 +000060
61namespace N11 {
62 namespace {
63 class Foo;
64 }
65 Foo *getFoo();
66}
67
68namespace N12 {
69 namespace {
70 class Foo;
71 }
72 Foo *getFoo();
73}
Richard Smith696e8122015-07-08 21:15:32 +000074
75namespace Empty {}