| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| #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 |
| sig_atomic_t sig; ((void)sig); |
| typedef void (*func)(int); |
| static_assert((std::is_same<decltype(signal(0, (func)0)), func>::value), ""); |
| static_assert((std::is_same<decltype(raise(0)), int>::value), ""); |