re PR c++/52659 (GCC fails to reject a deleted function definition which is not the first declaration)
2015-03-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52659 * g++.dg/cpp0x/deleted11.C: New. From-SVN: r221513
This commit is contained in:
parent
a3f94967e1
commit
397af03810
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
8
gcc/testsuite/g++.dg/cpp0x/deleted11.C
Normal file
8
gcc/testsuite/g++.dg/cpp0x/deleted11.C
Normal file
|
@ -0,0 +1,8 @@
|
|||
// PR c++/52659
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
struct sometype {
|
||||
sometype();
|
||||
};
|
||||
|
||||
sometype::sometype() = delete; // { dg-error "deleted" }
|
Loading…
Add table
Reference in a new issue