1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-gimple" } */ void f1(void) { #pragma omp barrier } void f2(bool p) { if (p) { #pragma omp barrier } } /* { dg-final { scan-tree-dump-times "GOMP_barrier" 2 "gimple" } } */ /* { dg-final { cleanup-tree-dump "gimple" } } */