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
/
sections-1.C
blob
43704908e43de34b39717efbe1c65bcacf9d65aa
1
/* { dg-do compile } */
2
3
extern void bar(int);
4
5
void f1(void)
6
{
7
#pragma omp sections nowait
8
{
9
bar (1);
10
#pragma omp section
11
bar (2);
12
#pragma omp section
13
bar (3);
14
#pragma omp section
15
bar (4);
16
#pragma omp section
17
bar (5);
18
}
19
}
20
21
void f2(void)
22
{
23
#pragma omp sections
24
{
25
#pragma omp section
26
{
27
bar (1);
28
bar (1);
29
}
30
#pragma omp section
31
bar (2);
32
#pragma omp section
33
bar (3);
34
#pragma omp section
35
bar (4);
36
#pragma omp section
37
bar (5);
38
}
39
}