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/] [reload1.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
extern "C" void abort ();
struct A {
unsigned long long u;
} *a;
struct B {
unsigned long long v;
unsigned long long w ()
{
return a->u - v;
}
} b;
struct C {
static unsigned long long x;
static void y (unsigned long long z);
};
unsigned long long C::x = 0;
int main ()
{
a = new A;
b.v = 333418;
a->u = 1132270;
C::x = 0;
C::y (799016);
}
void foo (unsigned long long a, unsigned long long b, unsigned long long c)
{
}
void C::y (unsigned long long z)
{
unsigned long long c = b.w () - x;
if (z < b.w ())
{
if ((long long) c < 0)
{
foo (b.w (), a->u, b.v);
abort ();
}
}
}
Go to most recent revision | Compare with Previous | Blame | View Log