mirror of https://github.com/adamdruppe/arsd.git
test for required compiler feature
This commit is contained in:
parent
53bfbdc399
commit
91a0aa6498
|
|
@ -4178,3 +4178,13 @@ void drawSprite(Pixmap target, const SpriteSheet sheet, int spriteIndex, Point p
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unittest {
|
||||||
|
// sanity test of the compiler's vector addition we need
|
||||||
|
ulong[4] a = [1,2,3,4];
|
||||||
|
ulong[4] b = [2,3,4,5];
|
||||||
|
|
||||||
|
a[] += b[];
|
||||||
|
|
||||||
|
assert(a == [3,5,7,9]);
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue