Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.law/operators29.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do assemble } // GROUPS passed operators // (Message bugs/opr-del:4) // From: jamshid@ses.com (Jamshid Afshar) // Date: Fri, 25 Feb 94 18:44:01 CST // Subject: Re: delete on "smart pointers" // Message-ID: <9402262328.AA16321@pancake> // // Who was apparently replying to kuhlins@hawk.wifo.uni-mannheim.de template<class T> class Ptr { public: Ptr(T*); operator T*(); }; int main() { Ptr<int> ip = new int(2); delete ip; operator delete(ip); return 0; }