d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test15762.d
blob0fb0293e5a823af4fb34a58099e8f937f72a7291
1 // https://issues.dlang.org/show_bug.cgi?id=15762
3 enum Windows1252Char : ubyte { init }
5 void main() @safe {
6 ubyte[] a = [1, 2, 3, 4];
7 auto aw = cast(Windows1252Char[]) a;
8 auto caw = cast(const(Windows1252Char)[]) a;
9 const(ubyte)[] c = [1, 2, 3, 4];
10 auto d = cast(const(ubyte)[]) c;
11 auto e = cast(const(Windows1252Char)[]) c;