]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.other/copy1.C
spec4.C: Remove stray semicolon.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.other / copy1.C
CommitLineData
ff0236af
JM
1// Bug: expand_vec_init doesn't copy arrays of builtin types.
2
3struct B {
4 B() { }
5 B(const B&) { }
6};
7
8struct A
9{
10 B b;
11 int ar[5];
12};
13
14int main()
15{
16 A a;
17 for (int i = 0; i < 5; ++i)
18 a.ar[i] = i;
19
20 A a2 = a;
21
22 for (int i = 0; i < 5; ++i)
23 if (a2.ar[i] != a.ar[i])
24 return 1;
25}
This page took 1.312295 seconds and 5 git commands to generate.