]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/anon6.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / anon6.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/anon6.C b/gcc/testsuite/g++.old-deja/g++.other/anon6.C
deleted file mode 100644 (file)
index 4fd9e7d..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-extern "C" void abort ();
-
-struct A {
-  union {
-    int a;
-    double b;
-    int d;
-  };
-  int c;
-};
-
-struct B : public A {
-  union {
-    double a;
-    void *c;
-  };
-  float b;
-  int e;
-};
-
-int main ()
-{
-  struct B b;
-
-  b.a = 1.5;
-  b.b = 2.5;
-  b.d = 1;
-  b.e = 2;
-  if (b.a != 1.5 || b.b != 2.5 || b.d != 1 || b.e != 2)
-    abort ();
-  b.c = &b.a;
-  b.d = b.e;
-  if (b.c != &b.a || b.d != 2)
-    abort ();
-  return 0;
-}