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

@@ -28,14 +28,13 @@ void sv_copy_test(void)
}
}
const test_fn TESTS_SV[] = {
MAKE_TEST_FN(sv_copy_test),
};
const test_suite_t SV_SUITE = {
.name = "String View Tests",
.tests = TESTS_SV,
.size = ARRSIZE(TESTS_SV),
.name = "String View Tests",
.tests =
(test_fn[]){
MAKE_TEST_FN(sv_copy_test),
},
.size = 1,
};
/* Copyright (C) 2026 Aryadev Chavali