summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/delete2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/delete2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/delete2.C16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/delete2.C b/gcc/testsuite/g++.old-deja/g++.jason/delete2.C
deleted file mode 100644
index 7748e2b9cb5..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.jason/delete2.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// PRMS Id: 5003
-// Bug: g++ complains about calling the destructor for a const object.
-// Build don't link:
-
-struct A {
-public:
- ~A();
-};
-
-const A foo ();
-
-void bar()
-{
- A n;
- n = foo(); // gets bogus error - deleting const
-}