1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
6 extern int fail_the_test(void *);
7 extern int pass_the_test(void *);
8 extern int diversion (void *);
18 struct somestruct first
;
19 struct somestruct buf
[32];
22 static int __attribute__((noinline
))
25 uintptr_t a
= (uintptr_t) p
;
28 return fail_the_test (p
);
30 return pass_the_test (p
);
42 through (struct somestruct
*p
)
55 /* { dg-final { scan-ipa-dump "Adjusting alignment of param" "cp" } } */
56 /* { dg-final { scan-tree-dump-not "fail_the_test" "optimized" } } */
57 /* { dg-final { cleanup-ipa-dump "cp" } } */
58 /* { dg-final { cleanup-tree-dump "optimized" } } */