OSDN Git Service

update
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb66.C
1 #include <assert.h>
2 #include <iostream.h>
3
4 int bar ()
5 {
6   throw 100;
7 }
8
9 main ()
10 {
11   int i = 0;
12   try
13     {
14       i = bar ();
15     }
16   catch (...)
17     {
18     }
19
20 //  cout << "i = " << i << endl;
21   assert (i == 0) ; 
22 }