testsuite: Fix up test language requirements [PR94314]
authorJakub Jelinek <jakub@redhat.com>
Fri, 17 Apr 2020 07:01:08 +0000 (09:01 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 17 Apr 2020 07:01:08 +0000 (09:01 +0200)
With c++11 one gets:
Excess errors:
.../testsuite/g++.dg/pr94314-4.C:19:28: error: too many arguments to function 'void operator delete(void*)'
because C++ sized deallocation is a C++14 feature.

2020-04-17  Jakub Jelinek  <jakub@redhat.com>

PR c++/94314
* g++.dg/pr94314-4.C: Require c++14 rather than c++11.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr94314-4.C

index e10dc694e412d71afe95bd5435f9ddd7e0955608..1341eb2745adb83027de7cc15b112cb2e53a453e 100644 (file)
@@ -1,3 +1,8 @@
+2020-04-17  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/94314
+       * g++.dg/pr94314-4.C: Require c++14 rather than c++11.
+
 2020-04-16  Peter Bergner  <bergner@linux.ibm.com>
 
        PR rtl-optimization/93974
index d097f29d4ad33e879fd8aed05ec9af8d259555ff..fd3b9c762f20510b5ec717e4f4e7fa0bb1b60d1c 100644 (file)
@@ -1,5 +1,5 @@
 /* PR c++/94314.  */
-/* { dg-do run { target c++11 } } */
+/* { dg-do run { target c++14 } } */
 /* { dg-options "-O2 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
 
 int count = 0;