Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.mike/eh46.C

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