From: Jan Hubicka Date: Fri, 16 Oct 2020 10:24:16 +0000 (+0200) Subject: Fix modref-4.c testcase X-Git-Tag: basepoints/gcc-12~4254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e27c8cc931f6b48a732f69b0f9d48d4166ab5522;p=thirdparty%2Fgcc.git Fix modref-4.c testcase PR testsuite/97426 * gcc.dg/tree-ssa/modref-4.c: Fix return test. --- diff --git a/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c b/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c index 97fe5307a1c9..3ac217bafb8e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c @@ -15,9 +15,9 @@ void b(char *ptr) int main() { - char c[3]={0,1,0}; + char c[4]={0,1,2,0}; b(c); - return c[0]+c[2]; + return c[0]+c[3]; } /* Check that both param offsets are determined correctly and the computation is optimized out. */