target-supports.exp (check_effective_target_mpaired_single): New function.
[platform/upstream/gcc.git] / gcc / testsuite / g++.dg / vect / pr22543.cc
1 /* { dg-do compile } */
2
3 struct A
4 {
5   int i, j;
6
7   A() : i(), j() {}
8   ~A() {}
9
10   operator int() { return 0; }
11 };
12
13 struct B
14 {
15   A foo() const { return A(); }
16 };
17
18 struct X { ~X(); };
19
20 struct C
21 {
22   C();
23
24   int z[4];
25 };
26
27 C::C()
28 {
29   for (int i=0; i<4; ++i)
30     z[i]=0;
31
32   X x;
33
34   for (int i=0; i<4; ++i)
35     int j = B().foo();
36 }
37
38 /* { dg-final { cleanup-tree-dump "vect" } } */