libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipcp-ii-1.c
blobc4202d1741de28d3d6e6ec7362a407c358e93b20
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 -fno-early-inlining" } */
6 extern void non_existent(int);
7 extern void non_existent(int);
9 static void hooray ()
11 non_existent (1);
14 static void __attribute__ ((noinline)) hiphip (void (*f)())
16 f ();
19 int __attribute__ ((noinline,noclone)) get_input(void)
21 return 1;
24 int main (int argc, int *argv[])
26 int i;
28 for (i = 0; i < get_input (); i++)
29 hiphip (hooray);
30 return 0;
33 /* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in hiphip.constprop" "inline" } } */