PR c++/49508
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / conversion.C
blob4c4b96117c5d2a2a0336a432ccfdc7b798879225
1 // { dg-do assemble  }
2 // Bug: g++ doesn't find the conversion path from DPtr& to B*.
4 class B {};
5 class D : public B {};
6 class DPtr
8 public:
9   operator D*() const;
12 void foo (B* bp);
13 void bar (DPtr& dp)
15   foo (dp);