]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/delete3.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / delete3.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete3.C b/gcc/testsuite/g++.old-deja/g++.other/delete3.C
deleted file mode 100644 (file)
index 45e4478..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <new>
-
-int i;
-
-extern "C" int printf (const char *, ...);
-
-template <class T, class U> 
-struct map {
-  ~map ();
-};
-
-template <class T, class U>
-map<T, U>::~map ()
-{}
-
-struct SomeClass { };
-
-void* operator new(size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
-{
-  return operator new(numBytes, std::nothrow);
-}
-
-void operator delete(void* pMemory, SomeClass&, const std::nothrow_t&) throw()
-{
-  i = 7;
-  return operator delete(pMemory);
-}
-
-int
-main()
-{
-  map< int, int>* pMap = new map< int, int>;
-  
-  delete pMap;
-  
-  if (i == 7)
-    return 1;
-}