Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/conversion/op6.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 // Origin: PR c++/42766 |
2 // { dg-do compile } | |
3 | |
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; | |
15 }; | |
16 SvnClient::~SvnClient() { | |
17 delete svnContext; | |
18 } |