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
[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr29965-1.C
blob
efb89ffa60963f4401ef8a0e8842a6ff9433b275
1
// PR middle-end/29965
2
// Test that OpenMP construct bodies which never return don't cause ICEs.
3
// { dg-do compile }
4
// { dg-options "-O2 -fopenmp" }
5
6
extern void baz () __attribute__ ((noreturn));
7
8
static inline void
9
foo ()
10
{
11
#pragma omp parallel
12
for (;;)
13
;
14
}
15
16
static inline void
17
bar ()
18
{
19
#pragma omp parallel
20
baz ();
21
}
22
23
void
24
foo1 ()
25
{
26
foo ();
27
}
28
29
void
30
foo2 ()
31
{
32
foo ();
33
}
34
35
void
36
bar1 ()
37
{
38
bar ();
39
}
40
41
void
42
bar2 ()
43
{
44
bar ();
45
}