PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-27.c
blobfab2e41e9108ad3bc12fb83eefccec2b901df6de
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf -fno-inline" } */
4 void destroy (void)
6 __asm__ __volatile__ ("" : : : "memory");
9 void remove (void)
11 __asm__ __volatile__ ("" : : : "memory");
14 void remove2 (void)
16 __asm__ __volatile__ ("" : : : );
19 int main()
21 destroy ();
22 remove ();
23 remove2 ();
25 return 0;
28 /* { dg-final { scan-ipa-dump "Semantic equality hit:remove->destroy" "icf" } } */
29 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */
30 /* { dg-final { cleanup-ipa-dump "icf" } } */