blob: df47ed44ef8cc8c1c08847e95a23dd29e34810ed [file] [log] [blame]
// { dg-do assemble }
// Bug: g++ fails to prefer UDC's alone to UDC's plus standard conversions.
struct B { };
struct D: public B { };
struct DP {
operator D * () const;
operator double () const;
};
void f (B *);
void f (D *);
void g (double);
void g (float);
void h (DP p)
{
f (p);
g (p);
}