1 // { dg-do run } 2 struct foo { }; 3 int f(int a, int b) 4 { 5 if (b == 0) 6 throw foo(); 7 return a / b; 8 } 9 int main() 10 { 11 try { 12 f(0, 0); 13 return 1; 14 } catch (foo x) { 15 return 0; 16 } 17 } 18