mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-04 13:06:01 +00: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;
|
|
}
|