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
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tpl-barrier-1.C
blob
b45cb1ee5cca07d865e4030473ea8176d67c0abd
1
// PR c++/24735
2
// { dg-do compile }
3
// { dg-options "-fopenmp -fdump-tree-gimple" }
4
5
template <int> void f1 ()
6
{
7
#pragma omp barrier
8
}
9
10
template <int> void f2 (bool p)
11
{
12
if (p)
13
{
14
#pragma omp barrier
15
}
16
}
17
18
void f3 ()
19
{
20
f1<0> ();
21
f2<0> (true);
22
}
23
24
// { dg-final { scan-tree-dump-times "GOMP_barrier" 2 "gimple" } }