From 397af03810df0a9a34ba7073eee5612b7ea599c9 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 19 Mar 2015 11:02:47 +0000 Subject: [PATCH] re PR c++/52659 (GCC fails to reject a deleted function definition which is not the first declaration) 2015-03-19 Paolo Carlini PR c++/52659 * g++.dg/cpp0x/deleted11.C: New. From-SVN: r221513 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/deleted11.C | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/deleted11.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 92ad9e1c98c..b625d853287 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-03-19 Paolo Carlini + + PR c++/52659 + * g++.dg/cpp0x/deleted11.C: New. + 2015-03-19 Jakub Jelinek 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 index 00000000000..9c60af09c21 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/deleted11.C @@ -0,0 +1,8 @@ +// PR c++/52659 +// { dg-do compile { target c++11 } } + +struct sometype { + sometype(); +}; + +sometype::sometype() = delete; // { dg-error "deleted" } -- 2.30.2