blob: 853fe70c6233b0d36d2e2b59088051478a11b39c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-forwprop1" } */
struct A { int i; };
int
foo(struct A *locp, int str)
{
int T355, *T356;
T356 = &locp->i;
*T356 = str;
return locp->i;
}
/* We should have propagated &locp->i into its dereference. */
/* { dg-final { scan-tree-dump "locp_\[^\\n\]* =" "forwprop1" } } */
/* { dg-final { cleanup-tree-dump "forwprop1" } } */
|