PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-19.c
blob7a29cf3b877cd8e38d3494f78893ca308d9b711e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 __attribute__ ((noinline))
5 int foo(int x)
7 int c = x;
9 if (x > 10)
10 c += 2;
11 else
12 c -= 3;
14 return c;
17 __attribute__ ((noinline))
18 int bar(int y)
20 int d = y;
22 if (y > 11)
23 d += 2;
24 else
25 d -= 3;
27 return d;
30 int main()
32 return 0;
35 /* { dg-final { scan-ipa-dump-not "Semantic equality hit:" "icf" } } */
36 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */
37 /* { dg-final { cleanup-ipa-dump "icf" } } */