Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / eh / 080514-1.C
blobdafa32503c55981daacfd2ec496b9e7d03cb19ed
1 // This used to fail on s390 due to cse removing an insn with a
2 // REG_EH_REGION without deleting the EH edge.
3 // { dg-do compile }
4 // { dg-options "-O2 -fnon-call-exceptions" }
6 void
7 run (int m, double d)
9   int stack[m];
10   int *sp = stack;
12   if (d == 1.0)
13     *(sp++) = (0);
14   else if (d < 1.0)
15     *(sp++) = (-1);