OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
sections-1.c
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
}