1// PR tree-optimization/51719 2// { dg-options "-O -fpartial-inlining" } 3 4int 5bar (void) 6{ 7 throw 1; 8} 9 10int __attribute__ ((noinline, noclone)) 11foo (int (*f) (void)) 12{ 13 try 14 { 15 return (*f) (); 16 } 17 catch (...) 18 { 19 } 20 return 0; 21} 22 23int 24main () 25{ 26 return foo (bar); 27} 28