/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
libc/test/src/stdlib/_Exit_test.cpp
20 строк
726 B
Alex Brachet
[libc] Add exit and atexit
17 фев 2022, 20:21
17 фев 2022, 20:21
d669838
Код
Авторство
О чём код?
//===-- Unittests for _Exit -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "include/stdlib.h" #include "src/stdlib/_Exit.h" #include "src/stdlib/exit.h" #include "utils/UnitTest/Test.h" TEST(LlvmLibcStdlib, _Exit) { EXPECT_EXITS([] { __llvm_libc::_Exit(1); }, 1); EXPECT_EXITS([] { __llvm_libc::_Exit(65); }, 65); EXPECT_EXITS([] { __llvm_libc::exit(1); }, 1); EXPECT_EXITS([] { __llvm_libc::exit(65); }, 65); }