Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test21179.d

raw
1 // https://github.com/dlang/dmd/issues/21179
2
3 void bigEndianToNative(ubyte[2] a) {}
4
5 void main()
6 {
7 ubyte[] arr;
8 const ubyte[2] bytes;
9 bigEndianToNative(bytes);
10 auto b = cast(const ubyte[2][]) arr;
11 }