[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr29965-1.C
blobefb89ffa60963f4401ef8a0e8842a6ff9433b275
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 () __attribute__ ((noreturn));
8 static inline void
9 foo ()
11 #pragma omp parallel
12   for (;;)
13     ;
16 static inline void
17 bar ()
19 #pragma omp parallel
20   baz ();
23 void
24 foo1 ()
26   foo ();
29 void
30 foo2 ()
32   foo ();
35 void
36 bar1 ()
38   bar ();
41 void
42 bar2 ()
44   bar ();