diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/copy1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/copy1.C | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/copy1.C b/gcc/testsuite/g++.old-deja/g++.other/copy1.C deleted file mode 100644 index 5cc68a5623e..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/copy1.C +++ /dev/null @@ -1,25 +0,0 @@ -// Bug: expand_vec_init doesn't copy arrays of builtin types. - -struct B { - B() { } - B(const B&) { } -}; - -struct A -{ - B b; - int ar[5]; -}; - -int main() -{ - A a; - for (int i = 0; i < 5; ++i) - a.ar[i] = i; - - A a2 = a; - - for (int i = 0; i < 5; ++i) - if (a2.ar[i] != a.ar[i]) - return 1; -} |