xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.betterc/test20088.d (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1 /*******************************************/
2 // https://issues.dlang.org/show_bug.cgi?id=20088
3 
4 struct S {
5     int i;
6 }
7 
main()8 extern(C) int main() @nogc nothrow pure
9 {
10     S[2] s = [S(1),S(2)];
11     void[] v = cast(void[])s;
12     S[] p = cast(S[])v; // cast of void[] to S[] triggers __ArrayCast template function
13     return 0;
14 }
15