PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-copyprop-1.c
blob41ad6ce6e349c3e2dfde49d41a1cdb01dd1e0e3c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-optimized" } */
4 typedef struct { int i; int j; } A;
5 int foo(A *a, int i)
7 a->i = i;
8 return a->i;
11 /* { dg-final { scan-tree-dump "return i" "optimized" } } */
12 /* { dg-final { cleanup-tree-dump "optimized" } } */