[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / depr / depr.c.headers / signal_h.compile.pass.cpp
blobace2eea17225a099ae828af45b0085652fdd8c79
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // test <signal.h>
11 #include <signal.h>
13 #include "test_macros.h"
15 #ifndef SIG_DFL
16 #error SIG_DFL not defined
17 #endif
19 #ifndef SIG_ERR
20 #error SIG_ERR not defined
21 #endif
23 #ifndef SIG_IGN
24 #error SIG_IGN not defined
25 #endif
27 #ifndef SIGABRT
28 #error SIGABRT not defined
29 #endif
31 #ifndef SIGFPE
32 #error SIGFPE not defined
33 #endif
35 #ifndef SIGILL
36 #error SIGILL not defined
37 #endif
39 #ifndef SIGINT
40 #error SIGINT not defined
41 #endif
43 #ifndef SIGSEGV
44 #error SIGSEGV not defined
45 #endif
47 #ifndef SIGTERM
48 #error SIGTERM not defined
49 #endif
51 sig_atomic_t sig;
52 typedef void (*func)(int);
53 ASSERT_SAME_TYPE(func, decltype(signal(0, (func)0)));
54 ASSERT_SAME_TYPE(int, decltype(raise(0)));