1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf -fmerge-all-constants -fdbg-cnt=merged_ipa_icf:1:3" } */
3 /* { dg-prune-output "dbg_cnt 'merged_ipa_icf' set to 1-3" } */
7 static const int c
= 2;
8 static const int d
= 2;
9 static char * e
= "test";
10 static char * f
= "test";
11 static int g
[3]={1,2,3};
12 static int h
[3]={1,2,3};
13 static const int *i
=&c
;
14 static const int *j
=&c
;
15 static const int *k
=&d
;
33 /* { dg-final { scan-ipa-dump-times "Unified;" 2 "icf" } } */