projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9791b4b
)
Fix modref-4.c testcase
author
Jan Hubicka
<jh@suse.cz>
Fri, 16 Oct 2020 10:24:16 +0000
(12:24 +0200)
committer
Jan Hubicka
<jh@suse.cz>
Fri, 16 Oct 2020 10:24:16 +0000
(12:24 +0200)
PR testsuite/97426
* gcc.dg/tree-ssa/modref-4.c: Fix return test.
gcc/testsuite/gcc.dg/tree-ssa/modref-4.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c
b/gcc/testsuite/gcc.dg/tree-ssa/modref-4.c
index 97fe5307a1c94d0f2aad97d42f4737b1ce1775da..3ac217bafb8e95fc08e417c71f41665f019e2c72 100644
(file)
--- 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. */