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++.jason/] [conversion4.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
struct A {
A (int);
};
struct B {
operator int () { return 1; }
};
void f (const A&);
void g()
{
B b;
f ((A) b);
f (A (b)); // { dg-bogus "" } functional cast treated differently from C style
}