aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-10-16 12:24:16 +0200
committerJan Hubicka <jh@suse.cz>2020-10-16 12:24:16 +0200
commite27c8cc931f6b48a732f69b0f9d48d4166ab5522 (patch)
treef043eb0d886616bd8b3747a9c7f81a2ed1b4e851
parent9791b4bb4b4254ee3fff4247803c1d775163967f (diff)
downloadgcc-e27c8cc931f6b48a732f69b0f9d48d4166ab5522.zip
gcc-e27c8cc931f6b48a732f69b0f9d48d4166ab5522.tar.gz
gcc-e27c8cc931f6b48a732f69b0f9d48d4166ab5522.tar.bz2
Fix modref-4.c testcase
PR testsuite/97426 * gcc.dg/tree-ssa/modref-4.c: Fix return test.
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/modref-4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c b/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c
index 97fe530..3ac217b 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. */