2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload17.C
blobdf47ed44ef8cc8c1c08847e95a23dd29e34810ed
1 // { dg-do assemble  }
2 // Bug: g++ fails to prefer UDC's alone to UDC's plus standard conversions.
4 struct B { };
5 struct D: public B { };
6 struct DP {
7   operator D * () const;
8   operator double () const;
9 };
11 void f (B *);
12 void f (D *);
13 void g (double);
14 void g (float);
16 void h (DP p)
18   f (p);
19   g (p);