re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-copyprop-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-store_copyprop-details" } */
3
4 typedef struct { int i; int j; } A;
5 int foo(A *a, int i)
6 {
7 a->i = i;
8 return a->i;
9 }
10
11 /* { dg-final { scan-tree-dump "return i" "store_copyprop" } } */
12 /* { dg-final { cleanup-tree-dump "store_copyprop" } } */