-// Build don't link:
+// { dg-do assemble }
struct A { };
struct B: public A {
A a;
- operator A () { return a; } // WARNING - never used implicitly
+ operator A () { return a; } // { dg-warning "" } never used implicitly
};
void f (const A&);
void g()
{
B b;
- (A) b; // gets bogus error - trying both constructor and type conversion operator
+ (A) b; // { dg-bogus "" } trying both constructor and type conversion operator
}