mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
11 lines
152 B
D
11 lines
152 B
D
module bug41;
|
|
|
|
void main()
|
|
{
|
|
char[] a = "hello world";
|
|
char* ap = a.ptr;
|
|
size_t i = 5;
|
|
char[] b = ap[0..i];
|
|
assert(b == "hello");
|
|
}
|