2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / spellcheck-ns.C
blob4f7452a50b7e97ac41c1324171ac262458739a80
1 // { dg-options "-fdiagnostics-show-caret" }
3 namespace outer {
4   namespace inner_ns {
5   }
6   typedef int some_typedef;
9 using namespace outer;
10 using namespace outer::inner_ms; // { dg-error "'inner_ms' is not a namespace-name; did you mean 'inner_ns'" }
11 /* { dg-begin-multiline-output "" }
12  using namespace outer::inner_ms;
13                         ^~~~~~~~
14                         inner_ns
15    { dg-end-multiline-output "" } */
17 outer::some_typedfe var; // { dg-error "'some_typedfe' in namespace 'outer' does not name a type; did you mean 'some_typedef'" }
18 /* { dg-begin-multiline-output "" }
19  outer::some_typedfe var;
20         ^~~~~~~~~~~~
21         some_typedef
22    { dg-end-multiline-output "" } */