diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.ext/anon2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ext/anon2.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/anon2.C b/gcc/testsuite/g++.old-deja/g++.ext/anon2.C new file mode 100644 index 000000000..5bde08db9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ext/anon2.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// { dg-options "" } +// { dg-prune-output "note" } + +struct S +{ + S (); +}; + +union U { + struct { + S s; // { dg-error "" } struct with constructor in union + }; +}; + |