summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-20 11:03:18 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-20 11:03:18 +0000
commit9b1ab1d199f240a87431461da4c9c5a61868f12a (patch)
tree713826f356a31b538c52674679218fc84194dbe9 /gcc/testsuite
parentc455d471c9afe24da6d8e86f4fb2192cd13d2496 (diff)
downloadppe42-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.C6
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
OpenPOWER on IntegriCloud