2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / conversion11.C
blob368dcbc140a3ba3426a5971d750509e73aa7b65c
1 // { dg-do assemble  }
2 // PRMS Id: 8805
3 // Bug: The two-level conversion is not found when calling a global fn.
5 class Int {
6 public:
7   Int(int A);
8 };
10 class Ding {
11 public:
12   Ding(Int A);
15 class Something {
16 public:
17   void DoSomething(Ding A);     // { dg-error "" } referred to
20 void DoSomething(Ding A);
22 void foo(Something* pX)
24   DoSomething(1);               // { dg-error "" } 
25   pX->DoSomething(1);           // { dg-error "" } 
26   (*pX).DoSomething(1);         // { dg-error "" }