repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge C++ from gomp-20050608-branch.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c++
/
master-1.C
blob
734b4e2cd98e72528ec6ffc734c5a56480073b8d
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
}