analyzer: enable taint state machine by default [PR103533]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / lastprivate-conditional-5.c
blob51f6b30ffecd3fd49221680865b953a0b21b998b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fopenmp -fdump-tree-ompexp" } */
3 /* { dg-final { scan-tree-dump-times "GOMP_loop_start " 3 "ompexp" } } */
4 /* { dg-final { scan-tree-dump-times "GOMP_loop_end_nowait " 3 "ompexp" } } */
6 int r;
8 void
9 foo (int *a)
11 #pragma omp for nowait lastprivate(conditional: r)
12 for (int i = 0; i < 64; ++i)
13 if (a[i])
14 r = a[i];
17 void
18 bar (int *a)
20 #pragma omp for nowait lastprivate(conditional: r) schedule (static, 4)
21 for (int i = 0; i < 64; ++i)
22 if (a[i])
23 r = a[i];
26 void
27 baz (int *a)
29 #pragma omp for nowait lastprivate(conditional: r) schedule (runtime)
30 for (int i = 0; i < 64; ++i)
31 if (a[i])
32 r = a[i];