[libc-commits] [libc] [libc] implement quick exit function (PR #93621)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed May 29 13:38:34 PDT 2024
================
@@ -324,6 +324,23 @@ add_libc_test(
libc.src.stdlib.srand
)
+add_libc_test(
+ quick_exit_test
+ # The EXPECT_EXITS test is only availible for unit tests.
+ UNIT_TEST_ONLY
+ SUITE
+ libc-stdlib-tests
+ SRCS
+ quick_exit_test.cpp
+ DEPENDS
+ libc.include.stdlib
+ libc.src.stdlib._Exit
+ libc.src.stdlib.quick_exit
+ libc.src.stdlib.atexit
+ libc.src.__support.CPP.array
----------------
michaelrj-google wrote:
for dependencies you should only need `libc.include.stdlib` and `libc.src.stdlib.quick_exit`.
https://github.com/llvm/llvm-project/pull/93621
More information about the libc-commits
mailing list