Debian Codegraph @

gcc/testsuite/gcc.dg/gomp/flush-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fdump-tree-gimple" } */
3
4 void f1(void)
5 {
6 #pragma omp flush
7 }
8
9 int x, y, z;
10
11 void f2(_Bool p)
12 {
13 if (p)
14 {
15 #pragma omp flush (x)
16 }
17 else
18 {
19 #pragma omp flush (x, y, z)
20 }
21 }
22
23 /* { dg-final { scan-tree-dump-times "__sync_synchronize" 3 "gimple" } } */