aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb66.C
blob: e9a303afdf684aba6e0aa1375d6141da0f41f7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <assert.h>
#include <iostream.h>

int bar ()
{
  throw 100;
}

main ()
{
  int i = 0;
  try
    {
      i = bar ();
    }
  catch (...)
    {
    }

//  cout << "i = " << i << endl;
  assert (i == 0) ; 
}