]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/delete5.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / delete5.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete5.C b/gcc/testsuite/g++.old-deja/g++.other/delete5.C
deleted file mode 100644 (file)
index e9cc493..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (C) 1999 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 15 Apr 1999 <nathan@acm.org>
-
-typedef __SIZE_TYPE__ size_t;
-
-struct X
-{
-  int i;
-  
-  X():i(){}
-  void *operator new(size_t)
-  {
-    return 0; // WARNING - cannot return NULL
-  }
-  void *operator new[](size_t)
-  {
-    return 0; // WARNING - cannot return NULL
-  }
-};
-
-struct Y
-{
-  int i;
-  
-  Y():i(){}
-  void *operator new(size_t) throw()
-  {
-    return 0; // ok
-  }
-  void *operator new[](size_t) throw()
-  {
-    return 0; // ok
-  }
-};
-
-int main()
-{
-  Y *yp = new Y;
-  
-  return yp != 0;
-}