]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/dtor4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / dtor4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/dtor4.C b/gcc/testsuite/g++.old-deja/g++.jason/dtor4.C
deleted file mode 100644 (file)
index dfdc3aa..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// PRMS Id: 5420
-// Bug: g++ gets mixed up calling destructors for references.
-// Build don't link:
-
-template<class X>
-class Z {
-public:
-    char space[100];
-    void kill()
-       { X& x = (X&) space[0];
-         x.~X(); }
-};
-
-class C { int i; };
-
-void
-f()
-{
-    Z<int> r;
-    r.kill();
-    Z<C> s;
-    s.kill();
-}