2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb50.C
blob8d2c4033f73bd36846faf5953817e33a16c9d5c8
1 // { dg-do run  }
2 struct foo { };
3 int f(int a, int b)
5         if (b == 0)
6                 throw foo();
7         return a / b;
9 int main()
11         try {
12                 f(0, 0);
13                 return 1;
14         } catch (foo x) {
15                 return 0;
16         }