Commit 987c9fc5 by Jan Hubicka Committed by Jan Hubicka

* tree-ssa/alias-access-spath-1.c: new testcase.

From-SVN: r271750
parent 5a158e54
2019-05-29 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa/alias-access-spath-1.c: new testcase.
2019-05-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/89875
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-fre3 -fno-tree-sra" } */
struct foo
{
int val;
} *fooptr;
struct bar
{
struct foo foo;
int val2;
} *barptr;
int
test ()
{
struct foo foo = { 0 };
barptr->val2 = 123;
*fooptr = foo;
return barptr->val2;
}
/* { dg-final { scan-tree-dump-times "return 123" 1 "fre3"} } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment