Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / gomp / tpl-master-1.C
blobcf22e1c3fd3a4a9da0e67396e81b80707e03db29
1 // PR c++/24734
2 // { dg-do compile }
3 // { dg-options "-fopenmp -fdump-tree-gimple" }
5 int i;
7 template <int> void f1 ()
9   #pragma omp ordered
10     i++;
13 template <int> void f2 (bool p)
15   if (p)
16     {
17       #pragma omp master
18         i++;
19     }
22 void f3 ()
24   f1<0> ();
25   f2<0> (true);
28 // { dg-final { scan-tree-dump-times "#pragma omp ordered" 1 "gimple" } }
29 // { dg-final { scan-tree-dump-times "#pragma omp master" 1 "gimple" } }
30 // { dg-final { cleanup-tree-dump "gimple" } }