| //===----------------------------------------------------------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| #error SIG_DFL not defined |
| #error SIG_ERR not defined |
| #error SIG_IGN not defined |
| #error SIGABRT not defined |
| #error SIGFPE not defined |
| #error SIGILL not defined |
| #error SIGINT not defined |
| #error SIGSEGV not defined |
| #error SIGTERM not defined |
| std::sig_atomic_t sig = 0; |
| typedef void (*func)(int); |
| static_assert((std::is_same<decltype(std::signal(0, (func)0)), func>::value), ""); |
| static_assert((std::is_same<decltype(std::raise(0)), int>::value), ""); |