OSDN Git Service

fix broken checkin, test should be link not assemble
[pf3gnuchains/gcc-fork.git] / libgomp / testsuite / libgomp.c++ / master-1.C
1 // PR c++/24734
2 // { dg-do run }
3
4 extern "C" void abort ();
5 int i;
6
7 template<int> void
8 foo ()
9 {
10   #pragma omp parallel
11     {
12     #pragma omp master
13       i++;
14     }
15 }
16
17 int
18 main ()
19 {
20   foo<0> ();
21   if (i != 1)
22     abort ();
23   return 0;
24 }