☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libgomp
/
testsuite
/
libgomp.c++
/
master-1.C
☽
☼
libgomp/testsuite/libgomp.c++/master-1.C
code
plain
raw
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
}