PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-3.c
blobe4e2eb628b97976aa7533ec85437ff127df8f980
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf" } */
4 typedef int v4si __attribute__ ((vector_size (16)));
6 __attribute__ ((noinline))
7 int foo(void)
9 v4si a = {1,2,3,4};
10 v4si b = {3,2,1,4};
11 v4si c;
13 return 54;
16 __attribute__ ((noinline))
17 int bar(void)
19 v4si a = {1,2,3,4};
20 v4si b = {3,2,1,4};
21 v4si c;
23 return 54;
26 int main()
28 foo();
29 bar();
31 return 0;
34 /* { dg-final { scan-ipa-dump "Semantic equality hit:bar->foo" "icf" } } */
35 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */
36 /* { dg-final { cleanup-ipa-dump "icf" } } */