]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add dg-do compile target c++17 directive for testcase [PR112822]
authorPeter Bergner <bergner@linux.ibm.com>
Wed, 13 Dec 2023 14:13:34 +0000 (08:13 -0600)
committerPeter Bergner <bergner@linux.ibm.com>
Wed, 13 Dec 2023 14:14:04 +0000 (08:14 -0600)
Add dg-do compile target directive that limits the test case to being built
on c++17 compiles or greater.

2023-12-13  Peter Bergner  <bergner@linux.ibm.com>

gcc/testsuite/
PR tree-optimization/112822
* g++.dg/pr112822.C: Add dg-do compile target c++17 directive.

gcc/testsuite/g++.dg/pr112822.C

index d1490405493acbfd0ec5b0d57e9526aa9768b77b..a8557522467d72ae069beee92506b0f572a6615f 100644 (file)
@@ -1,4 +1,5 @@
 /* PR tree-optimization/112822 */
+/* { dg-do compile { target c++17 } } */
 /* { dg-options "-w -O2" } */
 
 /* Verify we do not ICE on the following noisy creduced test case.  */