PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-16.c
bloba2613af5dd5e80b4ee65a6bdae2a834c13bb438b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 #include <stdio.h>
6 __attribute__ ((noinline))
7 int foo()
9 printf ("Hello world.\n");
10 return 0;
13 __attribute__ ((noinline))
14 int bar()
16 printf ("Hello world.\n");
17 return 0;
20 int main()
22 return foo() + bar();
25 /* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf" } } */
26 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */