tests: c23 allows you to inline stack allocated arrays in struct decls

This commit is contained in:
2026-02-05 05:10:19 +00:00
parent 16be3392b0
commit d88d7f7f23
4 changed files with 27 additions and 31 deletions

View File

@@ -77,16 +77,15 @@ void cons_test(void)
TEST_PASSED();
}
const test_fn TESTS_LISP_API[] = {
MAKE_TEST_FN(int_test),
MAKE_TEST_FN(sym_test),
MAKE_TEST_FN(cons_test),
};
const test_suite_t LISP_API_SUITE = {
.name = "Lisp API Tests",
.tests = TESTS_LISP_API,
.size = ARRSIZE(TESTS_LISP_API),
.name = "Lisp API Tests",
.tests =
(test_fn[]){
MAKE_TEST_FN(int_test),
MAKE_TEST_FN(sym_test),
MAKE_TEST_FN(cons_test),
},
.size = 3,
};
/* Copyright (C) 2026 Aryadev Chavali