1 // PR middle-end/45566
2 // { dg-require-effective-target freorder }
3 // { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition" }
4 
5 int k;
6 
7 int
main()8 main ()
9 {
10   try
11   {
12     if (k)
13       throw 6;
14   }
15   catch (...)
16   {
17   }
18 }
19