mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 23:01:43 +08:00
25 lines
237 B
C
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;
|
|
}
|