1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-ipa-bit-cp -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
3 /* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
7 extern int fail_the_test(void *);
8 extern int pass_the_test(void *);
9 extern int diversion (void *);
19 struct somestruct first
;
20 struct somestruct buf
[32];
23 static int __attribute__((noinline
))
26 uintptr_t a
= (uintptr_t) p
;
29 return fail_the_test (p
);
31 return pass_the_test (p
);
43 through (struct somestruct
*p
)
56 /* { dg-final { scan-ipa-dump-not "align:" "cp" } } */
57 /* { dg-final { scan-tree-dump "fail_the_test" "optimized" } } */