C++: simplify output from suggest_alternatives_for
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / error1.C
blob1f267e7b2544938f8c3b8232091087a16d5d01e0
1 // PR c++/17609
2 // Origin: <papadopo@shfj.cea.fr>
3 // { dg-do compile }
5 namespace N { int i; }          // { dg-message "N::i" }
6 void foo() { i; }   // { dg-error "'i' was not declared in this scope; did you mean 'N::i'\\?" }
8 using namespace N;
9 void bar() { i; }