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)) ferda(int x,int y)7int 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)) funkce(int a,int b)18int funkce(int a, int b) 19 { 20 if(a < b) 21 return a; 22 else 23 return b; 24 } 25 main(int argc,char ** argv)26int 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" } } */ 33