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
2014-02-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
block-5.C
blob
391f8b660a60d8a3e490bd7b84ea29247739ce2a
1
// { dg-do compile }
2
3
void foo()
4
{
5
#pragma omp master
6
{
7
goto bad1; // { dg-error "from here" }
8
}
9
10
#pragma omp master
11
{
12
bad1: // { dg-error "jump|exits OpenMP" }
13
return; // { dg-error "invalid exit" }
14
}
15
}
16
17
// { dg-message "error: invalid branch to/from an OpenMP structured block" "" { target *-*-* } 7 }