aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/union2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/union2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/union2.C25
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/union2.C b/gcc/testsuite/g++.old-deja/g++.law/union2.C
deleted file mode 100644
index 66c2c665cab..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.law/union2.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// GROUPS passed unions
-// anon-union file
-// From: gerlek@dat.cse.ogi.edu (Michael Gerlek)
-// Date: Tue, 8 Dec 92 12:56 PST
-// Subject: private anonymous unions have public members? (gcc-2.3.1)
-// Message-ID: <m0mzByL-0000hoC@dat.cse.ogi.edu>
-
-class A {
-public:
- int x;
-private:
- int y; // ERROR - private
- union {
- int z; // ERROR - private
- };
-};
-
-void f() {
- A a;
-
- a.x = 0;
- a.y = 1;// ERROR - .*
- a.z = 2;// ERROR -
-}