gcc/testsuite/c-c++-common/gomp/nothing-1.c
raw| 1 | #pragma omp nothing |
| 2 | |
| 3 | struct S |
| 4 | { |
| 5 | #pragma omp nothing |
| 6 | int s; |
| 7 | }; |
| 8 | |
| 9 | int |
| 10 | foo (int i) |
| 11 | { |
| 12 | #pragma omp nothing |
| 13 | if (0) |
| 14 | #pragma omp nothing |
| 15 | i++; |
| 16 | if (1) |
| 17 | ; |
| 18 | else |
| 19 | #pragma omp nothing |
| 20 | i++; |
| 21 | switch (0) |
| 22 | #pragma omp nothing |
| 23 | { |
| 24 | default: |
| 25 | break; |
| 26 | } |
| 27 | while (0) |
| 28 | #pragma omp nothing |
| 29 | i++; |
| 30 | for (; 0;) |
| 31 | #pragma omp nothing |
| 32 | i++; |
| 33 | lab: |
| 34 | #pragma omp nothing |
| 35 | i++; |
| 36 | return i; |
| 37 | } |