1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
13 #include "test_macros.h"
16 #error SIG_DFL not defined
20 #error SIG_ERR not defined
24 #error SIG_IGN not defined
28 #error SIGABRT not defined
32 #error SIGFPE not defined
36 #error SIGILL not defined
40 #error SIGINT not defined
44 #error SIGSEGV not defined
48 #error SIGTERM not defined
52 typedef void (*func
)(int);
53 ASSERT_SAME_TYPE(func
, decltype(signal(0, (func
)0)));
54 ASSERT_SAME_TYPE(int, decltype(raise(0)));