]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cilk-plus/CK/stl_test.cc
2 /* { dg-require-effective-target cilkplus_runtime } */
3 /* { dg-options "-fcilkplus" } */
16 int main(int argc
, char **argv
)
18 vector
<int> number_list
, number_list_serial
;
29 number_list_serial
.clear();
30 for (int ii
= 0; ii
< no_elements
; ii
++)
32 number_list
.push_back(new_number
);
33 number_list_serial
.push_back(new_number
);
36 _Cilk_for (int jj
= 0; jj
< no_elements
; jj
++)
38 number_list
[jj
] = jj
+ no_elements
;
40 for (int jj
= 0; jj
< no_elements
; jj
++)
42 number_list_serial
[jj
] = jj
+ no_elements
;
45 for (int jj
= 0; jj
< no_elements
; jj
++)
46 if (number_list_serial
[jj
] != number_list
[jj
])