PR target/81988
[official-gcc.git] / libgomp / testsuite / libgomp.c++ / for-10.C
blobc67096ac92a70315571ff5c9cb4aee468e7c61ff
1 extern "C" void abort ();
3 #define M(x, y, z) O(x, y, z)
4 #define O(x, y, z) x ## _ ## y ## _ ## z
6 #define F simd
7 #define G simd
8 #define S
9 #define N(x) M(x, G, normal)
10 #include "../libgomp.c/for-2.h"
11 #undef S
12 #undef N
13 #undef F
14 #undef G
16 #define F parallel for simd
17 #define G pf_simd
18 #include "../libgomp.c/for-1.h"
19 #undef F
20 #undef G
22 #undef SC
23 #define SC static
24 #define F for simd
25 #define G f_simd
26 #include "../libgomp.c/for-1.h"
27 #undef F
28 #undef G
29 #undef SC
31 int
32 main ()
34   if (test_simd_normal ()
35       || test_pf_simd_static ()
36       || test_pf_simd_static32 ()
37       || test_pf_simd_auto ()
38       || test_pf_simd_guided32 ()
39       || test_pf_simd_runtime ()
40       || test_f_simd_static ()
41       || test_f_simd_static32 ()
42       || test_f_simd_auto ()
43       || test_f_simd_guided32 ()
44       || test_f_simd_runtime ())
45     abort ();
46   return 0;