From: Sam James Date: Fri, 1 Nov 2024 00:26:46 +0000 (+0000) Subject: testsuite: tree-ssa: fix PR98265 test to use C++14 X-Git-Tag: basepoints/gcc-16~601 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcbc80af6fc3fb5c2b23a1773682ec8f91b4eeaf;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/g++.dg/tree-ssa/pr98265.C b/gcc/testsuite/g++.dg/tree-ssa/pr98265.C index 9c798e6c59d..d4872d6af20 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 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" } } */