PR c++/37276
[official-gcc.git] / gcc / testsuite / g++.dg / conversion / op6.C
blob9aec9f0a8086bb49faf507c97d5956ff88ff2d88
1 // Origin: PR c++/42766
2 // { dg-do compile }
4 template<class T> class smart_pointer {
5 public:
6     operator T* () const { }
7     operator bool () const { }
8     operator bool () { }
9 };
10 class Context { };
11 typedef smart_pointer<Context> ContextP;
12 class SvnClient  {
13     ~SvnClient();
14     ContextP svnContext;
16 SvnClient::~SvnClient() {
17     delete svnContext;