1 /* { dg-options "-fcilkplus" } */
2 /* { dg-do run { target i?86-*-* x86_64-*-* arm*-*-* } } */
3 /* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* arm*-*-*-* } } } */
10 struct fib_struct
*ptr_next
;
11 struct fib_struct
operator+(struct fib_struct
&other
) {
13 z
.x
= (*this).x
+ (other
.x
);
16 struct fib_struct
operator-(int other
) {
18 z
.x
= this->x
- other
;
21 bool operator<(int number
) {
22 return (this->x
< number
);
30 T a
= _Cilk_spawn fib
<T
>(z
- 1);
47 int parallel_fib
= fib
<int>(z
);
48 int serial_fib
= sfib(z
);
49 if (serial_fib
!= parallel_fib
)