]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/anon.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / anon.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/anon.C b/gcc/testsuite/g++.old-deja/g++.jason/anon.C
deleted file mode 100644 (file)
index 63d17a8..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// Bug: g++ has trouble copying anonymous structs.
-
-typedef struct { int i; } foo;
-struct A : public foo { 
-  struct { int i; } x;
-};
-
-int main ()
-{
-  A a;
-  a.i = 5;
-  a.x.i = 42;
-  A b (a);
-  a = b;
-  if (a.i != 5 || a.x.i != 42)
-    return 1;
-  return 0;
-}