2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload1.C
blob36f9cac468b4c0732e28cb531abed50ebedc38f0
1 // { dg-do assemble  }
2 // Bug: g++ thinks there is a conversion from void * to B *.
4 struct A {
5   operator void* ();
6 };
8 struct B: public A { };
10 void bar (A& a) {
11   B* bp = (B*)a;                // { dg-error "" }