summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-prof/partition3.C
blob: 7846983692101f790d03bdd98388a2a9bb5eea76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR middle-end/45566
// { dg-require-effective-target freorder }
// { dg-options "-O -fnon-call-exceptions -freorder-blocks-and-partition" }

int k;

int
main ()
{
  try
  {
    if (k)
      throw 6;
  }
  catch (...)
  {
  }
}