1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
18 return ((struct Foo
*)p
)->i
;
21 extern const struct Foo g
;
25 struct Foo
*p
= (struct Foo
*)&g
;
26 return ((const struct Foo
*)p
)->i
;
29 /* { dg-final { scan-tree-dump "= i_.;" "ccp1" } } */
30 /* { dg-final { scan-tree-dump "= f.i;" "ccp1" } } */
31 /* { dg-final { scan-tree-dump "= g.i;" "ccp1" } } */