1 // { dg-do compile { target c++11 } }
2 // Search std, __cxxabiv1, and global namespaces, plus two more,
5 // { dg-options "--param cxx-max-namespaces-for-diagnostic-help=5" }
7 // ::, std and __cxxabiv1
11 int foo; // { dg-message "A::foo" "suggested alternative" }
22 int foo; // { dg-message "B::I::foo" "suggested alternative" }
43 return foo; // { dg-error "was not declared" }
44 // { dg-message "maximum limit of 5 namespaces" "maximum limit" { target *-*-* } .-1 }
45 // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } .-2 }