PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr29965-1.c
blobb587d81e7603a7fb43a5718fe521c89057be19f0
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" } */
6 extern void baz (void) __attribute__ ((noreturn));
8 static inline void
9 foo (void)
11 #pragma omp parallel
12 for (;;)
16 static inline void
17 bar (void)
19 #pragma omp parallel
20 baz ();
23 void
24 foo1 (void)
26 foo ();
29 void
30 foo2 (void)
32 foo ();
35 void
36 bar1 (void)
38 bar ();
41 void
42 bar2 (void)
44 bar ();