comparison libgomp/testsuite/libgomp.c++/master-1.C @ 0:a06113de4d67

first commit
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2009 14:47:48 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a06113de4d67
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 }