gcc/testsuite/g++.old-deja/g++.ns/type1.C
raw| 1 | // { dg-do assemble } |
| 2 | // Test that using an elaborated-type-specifier in a namespace to refer |
| 3 | // to a class outside the namespace does not cause its name to be considered |
| 4 | // declared in the namespace. |
| 5 | |
| 6 | // Contributed by Jason Merrill <[email protected]> |
| 7 | |
| 8 | struct A { }; |
| 9 | |
| 10 | int A; |
| 11 | |
| 12 | namespace N { |
| 13 | struct A *f (); |
| 14 | } |
| 15 | |
| 16 | using namespace N; |
| 17 | |
| 18 | struct A *a; |