URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [ref1.C] - Rev 705
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
int f();
void g()
{
const int& i = f(); // OK
int& j = f(); // { dg-error "" } initialization of non-const reference
const volatile int& k = f(); // { dg-error "" } initialization of volatile ref
}
Go to most recent revision | Compare with Previous | Blame | View Log