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
S/390: Deprecate g5 and g6 CPU levels
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
block-0.C
blob
7a9d2bfb94ef4413b3b85a752a5baa0e138a9e5f
1
// { dg-do compile }
2
// { dg-options "-fopenmp -fdump-tree-omplower" }
3
4
void bar();
5
void foo()
6
{
7
#pragma omp critical
8
bar ();
9
#pragma omp master
10
bar ();
11
#pragma omp single
12
bar ();
13
#pragma omp for
14
for (int i = 0; i < 10; ++i)
15
bar ();
16
#pragma omp sections
17
{ bar(); }
18
#pragma omp parallel
19
bar ();
20
#pragma omp parallel for
21
for (int i = 0; i < 10; ++i)
22
bar ();
23
#pragma omp parallel sections
24
{
25
{
26
bar ();
27
bar ();
28
}
29
#pragma omp section
30
bar ();
31
}
32
}
33
34
// { dg-final { scan-tree-dump-times "terminate" 10 "omplower" } }