PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-34.c
blob3755e3fd9bc9750dabcbd9441fa78bf8b4d17974
1 /* { dg-do compile } */
2 /* { dg-require-alias "" } */
3 /* { dg-options "-O0 -fipa-icf -fdump-ipa-icf" } */
5 static int do_work(void)
7 return 0;
10 static int foo() __attribute__((alias("do_work")));
11 static int bar() __attribute__((alias("do_work")));
13 static int a()
15 return foo();
18 static int b()
20 return bar();
23 int main()
25 return a() + b();
28 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */