URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p2573.C] - Rev 841
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// prms-id: 2573
class X {
public:
int key();
virtual int vkey();
char *add();
};
char *X::add() {
char *f1 = (char *) &key; // { dg-error "" }
char *f2 = (char *) &vkey; // { dg-error "" }
return f1;
}
Go to most recent revision | Compare with Previous | Blame | View Log