repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix -Wreturn-type fallout.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cilk-plus
/
CK
/
pr68997.cc
blob
a9a8a51ce7e8000679bdadca68240b317118cff4
1
/* { dg-do compile } */
2
/* { dg-options "-std=c++11 -fcilkplus" } */
3
4
struct
A1
{
5
A1
() {}
6
A1
(
const
A1
&) {}
7
};
8
9
A1
fa1
() {
10
return
A1
();
11
}
12
13
struct
A2
{
14
A2
() {}
15
A2
(
A2
&&) {}
16
};
17
18
A2
fa2
() {
19
return
A2
();
20
}
21
22
struct
B1
{
23
};
24
25
B1
fb1
() {
26
return
B1
();
27
}
28
29
struct
A3
{
30
A3
(
const
B1
&) {}
31
};
32
33
struct
A4
{
34
A4
(
B1
) {}
35
};
36
37
struct
B2
{
38
B2
() {}
39
B2
(
const
B2
&) {}
40
};
41
42
B2
fb2
() {
43
return
B2
();
44
}
45
46
struct
A5
{
47
A5
(
B2
) {}
48
};
49
50
void
t1
() {
51
A1 a1
=
_Cilk_spawn
fa1
();
52
}
53
54
void
t2
() {
55
A2 a2
=
_Cilk_spawn
fa2
();
56
}
57
58
void
t3
() {
59
A3 a3
=
_Cilk_spawn
fb1
();
60
}
61
62
void
t4
() {
63
A4 a4
=
_Cilk_spawn
fb1
();
64
}
65
66
void
t5
() {
67
A5 a5
=
_Cilk_spawn
fb2
();
68
}