Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-20.c
blob9912a9a5c69b9abc65e60346c45c65f5578d20cd
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 #include <math.h>
6 __attribute__ ((noinline))
7 float foo()
9 return sin(12.4f);
12 __attribute__ ((noinline))
13 float bar()
15 return sin(12.4f);
18 int main()
20 foo();
21 bar();
23 return 0;
26 /* { dg-final { scan-ipa-dump "Semantic equality hit:bar->foo" "icf" } } */
27 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */
28 /* { dg-final { cleanup-ipa-dump "icf" } } */