]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/dtor5.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / dtor5.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/dtor5.C b/gcc/testsuite/g++.old-deja/g++.jason/dtor5.C
deleted file mode 100644 (file)
index 4761bed..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// PRMS Id: 5286
-// Bug: g++ forgets side-effects of object in call to nonexistent destructor.
-
-#include <new>
-
-int r;
-
-template <class T> struct A {
-  T *p;
-  int i;
-  A() { i = 0; p = (T*) new char[sizeof (T)]; new (p + i++) T; }
-  ~A() { p[--i].~T(); r = i; }
-};
-
-int main()
-{
-  { A<int> a; }
-
-  int* p = (int*) new char[sizeof (int)];
-  new (p + r++) int;
-  p[--r].~int();
-  
-  return r;
-}