PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / iinline-1.c
blobc8d403840b9bdfa9a6c25a1ba006db8e84b42221
1 /* Verify that simple indirect calls are inlined even without early
2 inlining.. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp" } */
6 extern void non_existent(int);
8 static void hooray ()
10 non_existent (1);
13 static void hiphip (void (*f)())
15 non_existent (2);
16 f ();
19 int test (void)
21 hiphip (hooray);
22 return 0;
25 /* { dg-final { scan-ipa-dump "indirect_call" "inline" } } */
26 /* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in test" "inline" } } */