Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / pr45330.C
blob02d9b3f63bb33bf45beb396f7ec81bfa32402f38
1 // { dg-do compile }
2 // Search std, __cxxabiv1, and global namespaces, plus one more.
3 // { dg-options "--param cxx-max-namespaces-for-diagnostic-help=4" }
5 #define NSPACE(NAME) namespace NAME { int foo; }
7 namespace A
9   int foo;                      // { dg-message "A::foo" "suggested alternative" }
12 namespace B
14   int foo;
17 namespace C
19   int foo;
22 namespace D
24   int foo;
27 namespace E
29   int foo;
32 int bar()
34   return foo;                   // { dg-error "was not declared" }
35   // { dg-message "maximum limit of 4 namespaces" "maximum limit" { target *-*-* } 34 }
36   // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 34 }