2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / flow1.C
blobd48a896b2e7a0580d06c8f7b9eeea84c297e7d50
1 // { dg-do run  }
2 #include <stdio.h>
4 int bar ()
6   throw 100;
7   return 0;
10 int main ()
12   int i = 0;                    // this gets deleted after flow analysis
13   try
14     {
15       i = bar ();
16     }
17   catch (...)
18     {
19     }
21   printf ("i = %d\n", i);
22   return i;