FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh46.C
blob323acb69dbeefa2545e500cbc5de63447852819b
1 // Build don't link:
2 // Special g++ Options: -fexceptions
3 // excess errors test - XFAIL arm-*-pe
5 int atoi(const char *);
7 struct ios {
8  virtual ~ios();
9 };
11 class fstreambase : virtual public ios {
14 class ifstream : public fstreambase {
17 class ofstream : public fstreambase {
20 extern const short O;
21 extern const short D;
23 const short O=  0;
24 const short D= -3;
27 short glc(const char* const * const l,
28           short& n,short& x,short& y,
29           ifstream* i,ofstream* o)
32   n=atoi(l[1]);
34   x=atoi(l[2]);
35   y=atoi(l[3]);
37   if((x < 0)||(y <0))
38     {
39      return D;
40     }
42   i = new ifstream[n];
43   o = new ofstream[2];
45   return O;