thrust / dependencies /libcudacxx /libcxx /test /std /language.support /support.runtime /csignal.pass.cpp
| //===----------------------------------------------------------------------===// | |
| // | |
| // 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 | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // test <csignal> | |
| int main(int, char**) | |
| { | |
| std::sig_atomic_t sig = 0; | |
| ((void)sig); | |
| 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), ""); | |
| return 0; | |
| } | |