1 /* Verify that simple indirect calls are inlined even without early
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -c -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
6 extern void non_existent(int);
8 int __attribute__ ((noinline
,noclone
)) get_input(void)
18 static void hip2 (void (*g
)())
24 static void hip1 (void (*f
)(void (*)()), void (*g
)())
30 int main (int argc
, int *argv
[])
34 for (i
= 0; i
< get_input (); i
++)
39 /* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in main" "inline" } } */
40 /* { dg-final { scan-ipa-dump "hip2\[^\\n\]*inline copy in main" "inline" } } */
41 /* { dg-final { cleanup-ipa-dump "inline" } } */