re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / foldaddr-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
3 struct a{
4 int a;
5 int b;
6 } a;
7 int *
8 t()
9 {
10 return (int *)&a;
11 }
12 /* { dg-final { scan-tree-dump "a.a" "optimized"} } */
13 /* { dg-final { cleanup-tree-dump "optimized" } } */