[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / block-0.C
blob7a9d2bfb94ef4413b3b85a752a5baa0e138a9e5f
1 // { dg-do compile }
2 // { dg-options "-fopenmp -fdump-tree-omplower" }
4 void bar();
5 void foo()
7   #pragma omp critical
8     bar ();
9   #pragma omp master
10     bar ();
11   #pragma omp single
12     bar ();
13   #pragma omp for
14   for (int i = 0; i < 10; ++i)
15     bar ();
16   #pragma omp sections
17     { bar(); }
18   #pragma omp parallel
19     bar ();
20   #pragma omp parallel for
21   for (int i = 0; i < 10; ++i)
22     bar ();
23   #pragma omp parallel sections
24     {
25       {
26         bar ();
27         bar ();
28       }
29     #pragma omp section
30       bar ();
31     }
34 // { dg-final { scan-tree-dump-times "terminate" 10 "omplower" } }