]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: tree-ssa: fix PR98265 test to use C++14
authorSam James <sam@gentoo.org>
Fri, 1 Nov 2024 00:26:46 +0000 (00:26 +0000)
committerSam James <sam@gentoo.org>
Thu, 27 Mar 2025 00:04:02 +0000 (00:04 +0000)
This test was previously not being run at all so this wasn't noticed
until my fix just now.

The test needs C++14 and it also should use scan-tree-dump, not
scan-tree-dump-times, as it wasn't passing a count parameter.

gcc/testsuite/ChangeLog:
PR ipa/98265

* g++.dg/tree-ssa/pr98265.C: Use -std=c++14.
Use scan-tree-dump instead of scan-tree-dump-times.

gcc/testsuite/g++.dg/tree-ssa/pr98265.C

index 9c798e6c59de5e42b3853defae256c6fd7369171..d4872d6af2062b13c0c500a52c32daa159b6b208 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -std=c++14 -fdump-tree-optimized" } */
 extern void __assert_fail(const char*, const char*, int, const char*);
 namespace Eigen {
 enum { AutoAlign };
@@ -345,4 +345,4 @@ Eigen::Matrix<float, 3, 1> should_inline(float x, float y, float z,
 
 // We should inline everything to should_inline
 
-/* { dg-final { scan-tree-dump-times "Function" "optimized" } } */
+/* { dg-final { scan-tree-dump "Function" "optimized" } } */