gcc/libgomp/testsuite/libgomp.c++/master-1.C
Richard Henderson 1799e5d5ca Merge C++ from gomp-20050608-branch.
From-SVN: r111867
2006-03-09 10:14:39 -08:00

25 lines
237 B
C

// PR c++/24734
// { dg-do run }
extern "C" void abort ();
int i;
template<int> void
foo ()
{
#pragma omp parallel
{
#pragma omp master
i++;
}
}
int
main ()
{
foo<0> ();
if (i != 1)
abort ();
return 0;
}