1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf-optimized" } */
12 static struct container max
;
13 static int pole
[3][3];
14 static int pole2
[123];
16 static struct container superpole
[10][10];
18 void f1(struct container
*c
)
24 struct container
*pesp
= c
;
29 superpole
[4][3].x
= 4;
33 int **a
= (int**)pole
;
40 void f2(struct container
*c
)
46 struct container
*pesp
= c
;
51 superpole
[4][3].x
= 4;
55 int **a
= (int**)pole
;
62 int main(int argc
, char **argv
)
67 /* { dg-final { scan-ipa-dump "Semantic equality hit:f1/\[0-9+\]+->f2/\[0-9+\]+" "icf" } } */
68 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */