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++.brendan/] [operators1.C] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed operators
struct A {
int x;
};
int operator()(A x,float y) { // MUST be a member function// { dg-error "" } .*
return 1;
}
int main() {
A x;
x(1.0); // { dg-error "" } no match for call
}
Go to most recent revision | Compare with Previous | Blame | View Log