https://gcc.gnu.org/g:dcbc80af6fc3fb5c2b23a1773682ec8f91b4eeaf

commit r15-8952-gdcbc80af6fc3fb5c2b23a1773682ec8f91b4eeaf
Author: Sam James <s...@gentoo.org>
Date:   Fri Nov 1 00:26:46 2024 +0000

    testsuite: tree-ssa: fix PR98265 test to use C++14
    
    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.

Diff:
---
 gcc/testsuite/g++.dg/tree-ssa/pr98265.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr98265.C 
b/gcc/testsuite/g++.dg/tree-ssa/pr98265.C
index 9c798e6c59de..d4872d6af206 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr98265.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr98265.C
@@ -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" } } */

Reply via email to