Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fipa-icf -fdump-ipa-icf" } */
3
4 #include <stdio.h>
5
6 static int
7 __attribute__ ((no_icf))
8 foo()
9 {
10 return 2;
11 }
12
13 static int
14 __attribute__ ((no_icf))
15 bar()
16 {
17 return 2;
18 }
19
20 int main()
21 {
22 return foo() - bar();
23 }
24
25 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */