diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error17.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/error17.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error17.C b/gcc/testsuite/g++.dg/other/error17.C new file mode 100644 index 000000000..18769ef6b --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error17.C @@ -0,0 +1,13 @@ +// PR c++/32870 + +struct Foo { + struct Bar; +}; + +namespace N { + struct Foo::Bar { }; // { dg-error "in namespace 'N'" } +} + +struct Baz { + struct Foo::Bar { }; // { dg-error "in 'struct Baz'" } +}; |