//===-- Unittests for feraiseexcept with exceptions enabled ---------------===// // // 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 "src/fenv/feclearexcept.h" #include "src/fenv/feraiseexcept.h" #include "src/fenv/fetestexcept.h" #include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/macros/properties/architectures.h" #include "test/UnitTest/FEnvSafeTest.h" #include "test/UnitTest/FPExceptMatcher.h" #include "test/UnitTest/Test.h" #include "hdr/fenv_macros.h" #include <signal.h> #include "excepts.h" LlvmLibcExceptionStatusTest; // This test enables an exception and verifies that raising that exception // triggers SIGFPE. TEST_F(LlvmLibcExceptionStatusTest, RaiseAndCrash) { … }