1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
13 typedef __SIZE_TYPE__
size_t;
22 /* This should be folded. */
23 foo (&a
.a
[50].a
- &a
.a
[33].b
);
24 foo ((size_t) &a
.a
[50].b
- (size_t) &a
);
26 /* And this should not. */
27 foo ((size_t) &b
- (size_t) b
);
31 /* Two of the calls to foo should be folded to just foo(constant). */
33 /* { dg-final { scan-tree-dump-times "foo \\(\[0-9\]*\\)" 2 "optimized" } } */
34 /* { dg-final { cleanup-tree-dump "optimized" } } */