]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cilk-plus/CK/pr69024.cc
[Patch AArch64] Fixup floating point division with -march=armv8-a+nosimd
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cilk-plus / CK / pr69024.cc
1 /* { dg-do compile } */
2 /* { dg-options "-fcilkplus" } */
3
4 struct A1 {
5 };
6
7 struct A2 {
8 A2 () {}
9 A2 (const A2&) {}
10 };
11
12 struct B1 {
13 operator A1 () {
14 return A1 ();
15 }
16 };
17
18 B1 fb1 () {
19 return B1 ();
20 }
21
22 struct B2 {
23 operator A2 () {
24 return A2 ();
25 }
26 };
27
28 B2 fb2 () {
29 return B2 ();
30 }
31
32 void t1 () {
33 A1 a1 = _Cilk_spawn fb1 ();
34 }
35
36 void t2 () {
37 A2 a2 = _Cilk_spawn fb2 ();
38 }