URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [eh46.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-xfail-if "" { arm-*-pe } { "*" } { "" } }
// { dg-options "-fexceptions" }
int atoi(const char *);
struct ios {
virtual ~ios();
};
class fstreambase : virtual public ios {
};
class ifstream : public fstreambase {
};
class ofstream : public fstreambase {
};
extern const short O;
extern const short D;
const short O= 0;
const short D= -3;
short glc(const char* const * const l,
short& n,short& x,short& y,
ifstream* i,ofstream* o)
{
n=atoi(l[1]);
x=atoi(l[2]);
y=atoi(l[3]);
if((x < 0)||(y <0))
{
return D;
}
i = new ifstream[n];
o = new ofstream[2];
return O;
}
Go to most recent revision | Compare with Previous | Blame | View Log