2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-33.c
blob61d4e2647beed94f0b58d38deca0c16dfdbc9b56
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fipa-icf -fdump-ipa-icf" } */
4 #include <stdio.h>
6 static int
7 __attribute__ ((no_icf))
8 foo()
10 return 2;
13 static int
14 __attribute__ ((no_icf))
15 bar()
17 return 2;
20 int main()
22 return foo() - bar();
25 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */