Spider2/tests/dynarr_get3_death.c

11 lines
237 B
C
Raw Normal View History

2024-09-01 16:12:11 +02:00
#include "util.h"
int tests_dynarr_get3_death(int argc, char **argv) {
int_dynarr_t a = dynarr_initi(int_dynarr_t);
for (int i = 0; i < 1000; i++)
dynarr_push(a, i);
int k = -1;
dynarr_get(a, k);
return 0;
}