test for required compiler feature

This commit is contained in:
Adam D. Ruppe 2025-10-12 20:32:30 -04:00
parent 53bfbdc399
commit 91a0aa6498
1 changed files with 10 additions and 0 deletions

View File

@ -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]);
}