From 91a0aa64987c9601857b01e6dd43f9c202dc26e1 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 12 Oct 2025 20:32:30 -0400 Subject: [PATCH] test for required compiler feature --- pixmappaint.d | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pixmappaint.d b/pixmappaint.d index 778e7eb..ae98fda 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -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]); +}