PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-33.c
blobd7e814dda3a838a7cf1530e816aeaa14a539887a
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fipa-icf -fdump-ipa-icf" } */
4 #include <stdio.h>
6 static int
7 __attribute__ ((no_icf))
8 foo()
10 return 2;
13 static int
14 __attribute__ ((no_icf))
15 bar()
17 return 2;
20 int main()
22 return foo() - bar();
25 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */
26 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */
27 /* { dg-final { cleanup-ipa-dump "icf" } } */