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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh46.C] - Blame information for rev 338

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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