1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-vars" } */
21 /* This should be folded. */
22 foo (&a
.a
[50].a
- &a
.a
[33].b
);
23 foo ((unsigned) &a
.a
[50].b
- (unsigned) &a
);
25 /* And this should not. */
26 foo ((unsigned) &b
- (unsigned) b
);
30 /* Two of the calls to foo should be folded to just foo(constant). */
32 /* { dg-final { scan-tree-dump-times "foo \\(\[0-9\]*\\)" 2 "vars" } } */