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 8void 9foo () 10{ 11#pragma omp parallel 12 throw 0; 13} 14 15static inline void 16bar () 17{ 18#pragma omp parallel 19 throw 0; 20} 21 22void 23bar1 () 24{ 25 bar (); 26} 27 28void 29bar2 () 30{ 31 bar (); 32} 33