libgomp/testsuite/libgomp.c-c++-common/for-1.c
raw| 1 | /* { dg-additional-options "-std=gnu99" {target c } } */ |
| 2 | |
| 3 | extern |
| 4 | #ifdef __cplusplus |
| 5 | "C" |
| 6 | #endif |
| 7 | void abort (void); |
| 8 | |
| 9 | #define M(x, y, z) O(x, y, z) |
| 10 | #define O(x, y, z) x ## _ ## y ## _ ## z |
| 11 | |
| 12 | #define F parallel for |
| 13 | #define G pf |
| 14 | #include "for-1.h" |
| 15 | #undef F |
| 16 | #undef G |
| 17 | |
| 18 | #define F for |
| 19 | #define G f |
| 20 | #include "for-1.h" |
| 21 | #undef F |
| 22 | #undef G |
| 23 | |
| 24 | int |
| 25 | main () |
| 26 | { |
| 27 | if (test_pf_static () |
| 28 | || test_pf_static32 () |
| 29 | || test_pf_auto () |
| 30 | || test_pf_guided32 () |
| 31 | || test_pf_runtime () |
| 32 | || test_f_static () |
| 33 | || test_f_static32 () |
| 34 | || test_f_auto () |
| 35 | || test_f_guided32 () |
| 36 | || test_f_runtime ()) |
| 37 | abort (); |
| 38 | return 0; |
| 39 | } |