summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/union4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/union4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/union4.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/union4.C b/gcc/testsuite/g++.old-deja/g++.law/union4.C
new file mode 100644
index 000000000..f48ceeea2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/union4.C
@@ -0,0 +1,13 @@
+// { dg-do assemble }
+// GROUPS passed unions
+// anon-union file
+// From: hossein@veritas.com (Hossein Raassi)
+// Date: Wed, 15 Dec 93 13:52 PST
+// Subject: Internal Error
+// Message-ID: <m0pA49A-0000LdC@piano.veritas.com>
+
+static union {
+ struct SS {
+ int ss;
+ };
+};// { dg-warning "no members" }