mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
Changed premake.lua to work with mingw.
Implemented array operations, not perfect but ok for tonight. closes #89
This commit is contained in:
10
tests/mini/arrayops3.d
Normal file
10
tests/mini/arrayops3.d
Normal file
@@ -0,0 +1,10 @@
|
||||
void main()
|
||||
{
|
||||
int[4] a = [1,2,3,4];
|
||||
int[4] b = [5,6,7,8];
|
||||
a[] += b[] / 2;
|
||||
assert(a[0] == 3);
|
||||
assert(a[1] == 5);
|
||||
assert(a[2] == 6);
|
||||
assert(a[3] == 8);
|
||||
}
|
||||
Reference in New Issue
Block a user