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
/
pr29965-7.C
blob
be7d6ae9dc2540ac90837e152c9f9db04d023619
1
// PR middle-end/29965
2
// Test that OpenMP construct bodies which never return don't cause ICEs.
3
// This is invalid code, but we don't emit diagnostics for it, nevertheless
4
// we test that we don't ICE on it.
5
// { dg-do compile }
6
// { dg-options "-O2 -fopenmp" }
7
8
void
9
foo ()
10
{
11
#pragma omp parallel
12
throw 0;
13
}
14
15
static inline void
16
bar ()
17
{
18
#pragma omp parallel
19
throw 0;
20
}
21
22
void
23
bar1 ()
24
{
25
bar ();
26
}
27
28
void
29
bar2 ()
30
{
31
bar ();
32
}