Debian Codegraph @

gcc/testsuite/gcc.dg/ipa/inline10.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Os -c -fdump-ipa-inline-details -fno-early-inlining -fno-partial-inlining" } */
3 void link_error ();
4 int
5 test(int a)
6 {
7 if (a>10)
8 {
9 link_error ();
10 link_error ();
11 link_error ();
12 link_error ();
13 link_error ();
14 link_error ();
15 link_error ();
16 link_error ();
17 link_error ();
18 link_error ();
19 link_error ();
20 link_error ();
21 link_error ();
22 link_error ();
23 link_error ();
24 link_error ();
25 }
26 }
27 int test2()
28 {
29 for (int i=0;i<10;i++)
30 test(i);
31 }
32 /* { dg-final { scan-ipa-dump "Known to be false: not inlined, op0 > 10" "inline" } } */
33 /* { dg-final { scan-ipa-dump "Inlined test" "inline" } } */