PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-10.c
blob5f76c1d87e739ee8512bd1c384fffa22c0ed0540
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 int ferda(int x, int y) __attribute__ ((pure));
5 int funkce(int a, int b) __attribute__ ((pure));
7 __attribute__ ((noinline))
8 int ferda(int x, int y)
10 if (x < y)
12 return x;
14 else
15 return y;
18 __attribute__ ((noinline))
19 int funkce(int a, int b)
21 if(a < b)
22 return a;
23 else
24 return b;
27 int main(int argc, char **argv)
29 return 0;
32 /* { dg-final { scan-ipa-dump "Semantic equality hit:ferda->funkce" "icf" } } */
33 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */