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; }
9 int foo; // { dg-message "A::foo" "suggested alternative" }
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 }