projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
sections-2.c
1
/* { dg-do compile } */
2
3
extern void bar(int);
4
void foo(void)
5
{
6
#pragma omp sections
7
bar (0); // { dg-error "expected" }
8
9
#pragma omp sections
10
{
11
} // { dg-error "expected" }
12
13
#pragma omp sections
14
{
15
bar (1);
16
}
17
18
#pragma omp sections
19
{
20
#pragma omp section
21
bar(2);
22
bar(3); // { dg-error "expected" }
23
bar(4);
24
#pragma omp section
25
bar(5);
26
bar(6); // { dg-error "expected" }
27
bar(7);
28
}
29
}