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++.other/] [eh5.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-O2" }
struct X {};
struct Y
{
Y();
virtual ~Y();
};
struct Z
{
int f (const int *x);
int g;
};
inline int
operator<< (Z &os, int x)
{
os.f (&x);
return os.g;
}
void foo (Z &a, X *b, X &c)
{
X *d = b;
int e = 0;
Z &f = a;
if (!(f << e))
do { do { } while (&c == 0); throw Y(); } while (0);
do { } while (&d == 0);
do { } while (&c == 0);
}
Go to most recent revision | Compare with Previous | Blame | View Log