1 /* { dg-do compile } */
2 /* { dg-require-visibility "" } */
3 /* { dg-require-alias "" } */
4 /* { dg-options "-O2 -fdump-ipa-icf" } */
12 extern const struct test myarray __attribute__ ((visibility("hidden")));
13 extern const struct test myarray_alias __attribute__ ((visibility("hidden")));
15 const struct test myarray = {1, 1.5f};
17 extern const struct test myarray_alias __attribute__ ((alias ("myarray")));
21 return myarray.a - myarray_alias.a;
24 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */