mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
10
tests/mini/bug51.d
Normal file
10
tests/mini/bug51.d
Normal file
@@ -0,0 +1,10 @@
|
||||
module bug51;
|
||||
const ubyte[3] arr1 = 1;
|
||||
const ubyte[3] arr2 = [1];
|
||||
const ubyte[3] arr3 = [1:1];
|
||||
void main()
|
||||
{
|
||||
assert(arr1 == [cast(ubyte)1,1,1][]);
|
||||
assert(arr2 == [cast(ubyte)1,0,0][]);
|
||||
assert(arr3 == [cast(ubyte)0,1,0][]);
|
||||
}
|
||||
Reference in New Issue
Block a user