| 1 |
// { dg-options "-fdiagnostics-show-caret" } |
| 2 |
|
| 3 |
namespace outer { |
| 4 |
namespace inner_ns { |
| 5 |
} |
| 6 |
typedef int some_typedef; |
| 7 |
} |
| 8 |
|
| 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 "" } */ |
| 16 |
|
| 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 "" } */ |