1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
6 __attribute__ ((noinline
))
21 __attribute__ ((noinline
))
22 int fce2(int x
, int y
)
37 int main(int argc
, char **argv
)
39 printf("fce1: %d\n", fce1(argc
, argc
+ 2));
40 printf("fce2: %d\n", fce2(argc
, 2 * argc
));
43 /* { dg-final { scan-ipa-dump "Semantic equality hit:fce2->fce1" "icf" } } */
44 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */
45 /* { dg-final { cleanup-ipa-dump "icf" } } */