]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/destruct.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / destruct.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/destruct.C b/gcc/testsuite/g++.old-deja/g++.jason/destruct.C
deleted file mode 100644 (file)
index c5b3be6..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// Exhaustive test for destructors of simple types.
-// PRMS Id: 2744, 3308
-// Build don't link:
-
-template <class T> class A {
-  T q;
-public:
-  ~A() {
-    q.T::~T();
-    q.~T();
-    (&q)->T::~T();
-    (&q)->~T();
-  }
-};
-
-typedef char * cp;
-
-int main ()
-{
-  A<int> a;
-  A<cp> b;
-  int i;
-  cp c;
-
-  i.~int();
-  i.int::~int();
-  (&i)->~int();
-  (&i)->int::~int();
-  c.~cp();
-  c.cp::~cp();
-  (&c)->~cp();
-  (&c)->cp::~cp();
-}