URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [explicit6.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/47080
// { dg-options -std=c++0x }
struct A {
explicit operator int(); // { dg-message "qualification conversion" }
};
int main() {
bool b((A())); // { dg-error "invalid user-defined" }
!A(); // { dg-error "" }
}
Go to most recent revision | Compare with Previous | Blame | View Log