Debian Codegraph @

gcc/testsuite/gcc.dg/ipa/ipa-icf-9.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
3
4 int funkce(int a, int b) __attribute__ ((pure));
5
6 __attribute__ ((noinline))
7 int ferda(int x, int y)
8 {
9 if (x < y)
10 {
11 return x;
12 }
13 else
14 return y;
15 }
16
17 __attribute__ ((noinline))
18 int funkce(int a, int b)
19 {
20 if(a < b)
21 return a;
22 else
23 return b;
24 }
25
26 int main(int argc, char **argv)
27 {
28 return 0;
29 }
30
31 /* { dg-final { scan-ipa-dump-not "Semantic equality hit:" "icf" } } */
32 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */