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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
block-9.c
blob
202599f2ae2e030077c8c89b8ea87147b3022e2b
1
// { dg-do compile }
2
3
void
foo
(
int
i
)
4
{
5
int
j
;
6
switch
(
i
)
// { dg-error "invalid entry to OpenMP structured block" }
7
{
8
#pragma omp parallel
// { dg-warning "statement will never be executed" }
9
{
case
0
:; }
10
#pragma omp for
11
for
(
j
=
0
;
j
<
10
; ++
j
)
12
{
case
1
:; }
13
#pragma omp critical
14
{
case
2
:; }
15
#pragma omp master
16
{
case
3
:; }
17
#pragma omp sections
18
{
case
4
:;
19
#pragma omp section
20
{
case
5
:; }
21
}
22
#pragma omp ordered
23
{
default
:; }
24
}
25
}