OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh46.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.