2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr22543.cc
blob47c475a2fc0b4d36d74aa1d57a481a33d1851857
1 /* { dg-do compile } */
3 struct A
5 int i, j;
7 A() : i(), j() {}
8 ~A() {}
10 operator int() { return 0; }
13 struct B
15 A foo() const { return A(); }
18 struct X { ~X(); };
20 struct C
22 C();
24 int z[4];
27 C::C()
29 for (int i=0; i<4; ++i)
30 z[i]=0;
32 X x;
34 for (int i=0; i<4; ++i)
35 int j = B().foo();