]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/dtor12.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dtor12.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dtor12.C b/gcc/testsuite/g++.old-deja/g++.other/dtor12.C
deleted file mode 100644 (file)
index 1a9d58a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// Test that we don't complain about calling a destructor on a const object.
-
-#include <new>
-
-struct A
-{
-  ~A() {}
-};
-
-const A a = {};
-int main()
-{
-  a.~A();
-  a.A::~A();                   // gets bogus error - const violation
-}