X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fanon.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fanon.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=63d17a8cb2d6f2eaa4b8e9558a92c6a3f0410153;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git 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 index 63d17a8c..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/anon.C +++ /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; -}