URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [incomplete1.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// The reference parameter to fred isn't dereferenced properly.
class Gump {};
Gump operator & (const Gump x){return x;}
class B;
void *sam(int &x)
{return &x;}
const void *fred(const B& x)
{return &x;} // "&x" causes the compilation error.
class B {};
Go to most recent revision | Compare with Previous | Blame | View Log