mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-20 13:21:15 +01:00
a84f174425
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29033 a95241bf-73f2-0310-859d-f6bbb57e9c96
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;
|
|
}
|