blob: 303860b4725427dda5325d09ff1db3aabf32d653 [file] [log] [blame]
// Build don't link:
struct A { };
struct B: public A {
A a;
operator A () { return a; } // WARNING - never used implicitly
};
void f (const A&);
void g()
{
B b;
(A) b; // gets bogus error - trying both constructor and type conversion operator
}