From: Bernd Edlinger Date: Wed, 19 May 2021 07:51:44 +0000 (+0200) Subject: Fix commit mistake in testcase gcc.dg/tree-ssa/ssa-sink-3.c X-Git-Tag: basepoints/gcc-13~7410 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51cfa55431c38f3c29c7b72833337ad8a2da5c06;p=thirdparty%2Fgcc.git Fix commit mistake in testcase gcc.dg/tree-ssa/ssa-sink-3.c the test case was accidenally changed to empty file. 2021-05-19 Bernd Edlinger * gcc.dg/tree-ssa/ssa-sink-3.c: Fix test case. --- diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c index e69de29bb2d1..ad88ccc4f5bf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-3.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-sink-stats" } */ +extern void foo(int a); +int +main (int argc) +{ + int a; + a = argc + 1; + if (argc + 3) + { + foo (a); + } +} +/* We should sink the a = argc + 1 calculation into the if branch */ +/* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink1" } } */