diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-20 11:03:18 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-20 11:03:18 +0000 |
commit | 9b1ab1d199f240a87431461da4c9c5a61868f12a (patch) | |
tree | 713826f356a31b538c52674679218fc84194dbe9 /gcc/testsuite | |
parent | c455d471c9afe24da6d8e86f4fb2192cd13d2496 (diff) | |
download | ppe42-gcc-9b1ab1d199f240a87431461da4c9c5a61868f12a.tar.gz ppe42-gcc-9b1ab1d199f240a87431461da4c9c5a61868f12a.zip |
* decl2.c (find_representative_member): New function.
(finish_anon_union): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/anon1.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/anon1.C b/gcc/testsuite/g++.old-deja/g++.other/anon1.C new file mode 100644 index 00000000000..87948481d2b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/anon1.C @@ -0,0 +1,6 @@ +// Build don't link: + +static union { + union { + }; +}; // ERROR - anonymous union with no members |