d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / issue20618.d
blob0cc90cff66125fcb10837139501825e1f47ef184
1 // https://issues.dlang.org/show_bug.cgi?id=22198
2 // This test was in fail_compilation, however the change in the compiler has
3 // been reverted to make this code compilable again.
4 void main()
6 int[10] a;
7 auto b = a[1..12];
8 auto c = a[4..3];
9 auto d = a[0..$ + 1];