// { dg-do assemble }// { dg-options "-Wconversion" }struct A { };struct B:public A {
A a;operatorA() {return a; }// { dg-warning "" } never used implicitly};voidf(const A&);voidg(){
B b;(A) b;// { dg-bogus "" } trying both constructor and type conversion operator}