URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [structret1.C] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run { target ia64-*-* } }
// { dg-options "-fabi-version=0" }
extern "C" void abort ();
struct ConstructedObject {
ConstructedObject() {};
~ConstructedObject() {};
ConstructedObject(const ConstructedObject &from) {};
};
struct FrameworkObject {
ConstructedObject action();
};
ConstructedObject FrameworkObject::action() {
void *r32, *r33;
asm("mov %0 = r32\nmov %1 = r33" : "=r"(r32), "=r"(r33) : );
if (this != r33) {
abort ();
}
}
int main()
{
FrameworkObject slawa;
slawa.action();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log