URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p5673.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
// prms-id: 5673
class A {
public:
operator int () {
return 7;
}
~A();
};
int foo() {
return A();
}
int main() {
return foo() != 7;
}
A::~A() {
}