2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr17141-1.c
blobe33571da156cee017f4bc4e5a222ecbc7681253e
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-forwprop1" } */
4 struct A { int i; };
5 int
6 foo(struct A *locp, int str)
8 int T355, *T356;
9 T356 = &locp->i;
10 *T356 = str;
11 return locp->i;
14 /* We should have propagated &locp->i into its dereference. */
16 /* { dg-final { scan-tree-dump "locp_\[^\\n\]* =" "forwprop1" } } */