]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cilk-plus/CK/const_spawn.cc
2 /* { dg-require-effective-target cilkplus_runtime } */
3 /* { dg-options "-fcilkplus" } */
10 Rectangle (int, int, int);
14 Rectangle::~Rectangle ()
20 Rectangle::Rectangle (int height
, int width
)
27 Rectangle::Rectangle (int height
, int width
, int area_orig
)
36 return (area_val
+= (h
*w
));
39 /* Spawning constructor. */
42 Rectangle r
= _Cilk_spawn
Rectangle (4, 3);
46 /* Spawning constructor 2. */
49 Rectangle
r (_Cilk_spawn
Rectangle (4, 3));
53 /* Spawning copy constructor. */
56 Rectangle r
= _Cilk_spawn
Rectangle (4, 3, 2);
60 /* Spawning copy constructor 2. */
63 Rectangle
r ( _Cilk_spawn
Rectangle (4, 3, 2));