OSDN Git Service

Merge in xfails from PR14107.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.mike / eh46.C
1 // { dg-do assemble { xfail arm-*-pe } }
2 // { dg-options "-fexceptions" }
3
4 int atoi(const char *);
5
6 struct ios {
7  virtual ~ios();
8 };
9  
10 class fstreambase : virtual public ios {
11 };
12
13 class ifstream : public fstreambase {
14 };
15
16 class ofstream : public fstreambase {
17 };
18
19 extern const short O;
20 extern const short D;
21
22 const short O=  0;
23 const short D= -3;
24
25
26 short glc(const char* const * const l,
27           short& n,short& x,short& y,
28           ifstream* i,ofstream* o)
29
30 {
31   n=atoi(l[1]);
32
33   x=atoi(l[2]);
34   y=atoi(l[3]);
35
36   if((x < 0)||(y <0))
37     {
38      return D;
39     }
40
41   i = new ifstream[n];
42   o = new ofstream[2];
43
44   return O;
45
46 }