]>
Commit | Line | Data |
---|---|---|
fdaea7e2 | 1 | // { dg-do assemble } |
4f4b0ab8 | 2 | // { dg-xfail-if "" { arm-*-pe } } |
6481daa9 | 3 | // { dg-options "-fexceptions" } |
921e5a0e JL |
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 | } |