diff options
| author | Job Henandez Lara <jobhdezlara93@gmail.com> | 2024-11-07 09:10:22 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-07 09:10:22 -0800 |
| commit | c980cc086989a5910c4e6321063e805f767a3b90 (patch) | |
| tree | 0d5982bfe8dd85a06fa31227e123ea2ceac48f06 /libc/test/src/stdlib/at_quick_exit_test.cpp | |
| parent | 9501af5f92bb31fa9527d12a4b17b88d9fd651c4 (diff) | |
[libc] Remove _Exit proxy func header and use LIBC_NAMESPACE::_Exit in tests (#114904)
This improves/fixes this pr
https://github.com/llvm/llvm-project/pull/114718. In this PR we removed
the _Exit proxy func because it was not needed. Instead we used
`LIBC_NAMESPACE::_Exit`
Diffstat (limited to 'libc/test/src/stdlib/at_quick_exit_test.cpp')
| -rw-r--r-- | libc/test/src/stdlib/at_quick_exit_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/test/src/stdlib/at_quick_exit_test.cpp b/libc/test/src/stdlib/at_quick_exit_test.cpp index 8049fe58d29b..1ed5a83a61b8 100644 --- a/libc/test/src/stdlib/at_quick_exit_test.cpp +++ b/libc/test/src/stdlib/at_quick_exit_test.cpp @@ -6,7 +6,6 @@ // //===----------------------------------------------------------------------===// -#include "hdr/func/_Exit.h" #include "src/__support/CPP/array.h" #include "src/__support/CPP/utility.h" #include "src/stdlib/at_quick_exit.h" @@ -34,7 +33,7 @@ TEST(LlvmLibcAtQuickExit, Basic) { TEST(LlvmLibcAtQuickExit, AtQuickExitCallsSysExit) { auto test = [] { - LIBC_NAMESPACE::at_quick_exit(+[] { _Exit(1); }); + LIBC_NAMESPACE::at_quick_exit(+[] { LIBC_NAMESPACE::_Exit(1); }); LIBC_NAMESPACE::quick_exit(0); }; EXPECT_EXITS(test, 1); |
