From 2176169257505d22021fc9a739c9f2090c514cb4 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 16 Oct 2025 17:47:13 +0300 Subject: check iteration on empty vectors --- tests/spvec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/spvec.c') diff --git a/tests/spvec.c b/tests/spvec.c index aa9b96c..b46bd88 100644 --- a/tests/spvec.c +++ b/tests/spvec.c @@ -21,6 +21,9 @@ int main() atexit(covsrv_destroy); #endif struct ints ints = ints_create(); + foreach(ints, iter, &ints) { + assert(false && "iterating empty spvec"); + } /* ensure stability before we do anything else */ assert(ints_reserve(&ints, 1)); -- cgit v1.2.3