blob: 4f7452a50b7e97ac41c1324171ac262458739a80 [file] [log] [blame]
// { dg-options "-fdiagnostics-show-caret" }
namespace outer {
namespace inner_ns {
}
typedef int some_typedef;
}
using namespace outer;
using namespace outer::inner_ms; // { dg-error "'inner_ms' is not a namespace-name; did you mean 'inner_ns'" }
/* { dg-begin-multiline-output "" }
using namespace outer::inner_ms;
^~~~~~~~
inner_ns
{ dg-end-multiline-output "" } */
outer::some_typedfe var; // { dg-error "'some_typedfe' in namespace 'outer' does not name a type; did you mean 'some_typedef'" }
/* { dg-begin-multiline-output "" }
outer::some_typedfe var;
^~~~~~~~~~~~
some_typedef
{ dg-end-multiline-output "" } */