aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/pr50212.C
blob: c0b030d2384ada4c867a29dc74a4f503c7920772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR rtl-optimization/50212
// { dg-do compile }
// { dg-require-effective-target freorder }
// { dg-options "-O -fnon-call-exceptions -ftrapv -freorder-blocks-and-partition" }

void
foo (int n)
{
  try
  {
    int i = 0;
    while (i++ < n);
  }
  catch (...)
  {
  }
}