1 // { dg-do run } 2 // { dg-options -fomit-frame-pointer } 3 4 #include <iostream> 5 6 class Bug 7 { 8 }; 9 throw_bug()10 int throw_bug() 11 { 12 throw Bug(); 13 14 return 0; 15 } 16 main()17 int main() 18 { 19 try { 20 std::cout << throw_bug(); 21 } catch (Bug bug) { 22 }; 23 24 return 0; 25 } 26