blob: a702fef4f31c3a1099d967733b32ace018d7aca2 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fno-rerun-cse-after-loop -ftrapv -fno-tree-loop-optimize -fdelete-dead-exceptions -fno-forward-propagate -fnon-call-exceptions -O2" }
void bar (int n, char *p)
{
try
{
n++;
for (int i = 0; i < n - 1; i++)
p[i];
}
catch (...)
{}
}