re PR c++/52659 (GCC fails to reject a deleted function definition which is not the...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 19 Mar 2015 11:02:47 +0000 (11:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 19 Mar 2015 11:02:47 +0000 (11:02 +0000)
2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52659
* g++.dg/cpp0x/deleted11.C: New.

From-SVN: r221513

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/deleted11.C [new file with mode: 0644]

index 92ad9e1c98cb53f6c8efb93540a9ee72651d83c0..b625d853287136a13edbf30a77cb0e14518a8fa7 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/52659
+       * g++.dg/cpp0x/deleted11.C: New.
+
 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/65400
diff --git a/gcc/testsuite/g++.dg/cpp0x/deleted11.C b/gcc/testsuite/g++.dg/cpp0x/deleted11.C
new file mode 100644 (file)
index 0000000..9c60af0
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/52659
+// { dg-do compile { target c++11 } }
+
+struct sometype {
+  sometype();
+};
+
+sometype::sometype() = delete;  // { dg-error "deleted" }