Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / conversion11.C
bloba7c0fbea974d94eec60bf41e6ff16dddc497ee07
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-message "Something::DoSomething|no known conversion" } referred to
20 void DoSomething(Ding A);
22 void foo(Something* pX)
24   DoSomething(1);               // { dg-error "could not convert" }
25   pX->DoSomething(1);           // { dg-error "no matching" } 
26   (*pX).DoSomething(1);         // { dg-error "no matching" }