blob: 81f686bd972cd9b9b3f2c815eef3206f58170160 [file] [log] [blame]
/* PR rtl-optimization/88870 */
/* { dg-do compile } */
/* { dg-require-effective-target nonlocal_goto } */
/* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv -fno-tree-dominator-opts" } */
int a, b;
void
foo (int *x)
{
int c = 0;
{
int d;
x = &c;
for (;;)
{
x = &d;
b = 0;
d = c + 1;
b = c = 1;
++a;
}
}
}