URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [new5.C] - Rev 705
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// Test that const-correctness is observed when using new.
struct A {
A() { }
int f () { return 1; }
int f () const { return 0; }
};
int main ()
{
return (new const A)->f ();
}
Go to most recent revision | Compare with Previous | Blame | View Log