thrust / dependencies /libcudacxx /libcxx /test /std /language.support /support.runtime /csignal.pass.cpp
Download dependencies/libcudacxx/libcxx/test/std/language.support/support.runtime/csignal.pass.cpp from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/camenduru/thrust/resolve/main/dependencies/libcudacxx/libcxx/test/std/language.support/support.runtime/csignal.pass.cpp
- Command line
-
hf download hf://camenduru/thrust/dependencies/libcudacxx/libcxx/test/std/language.support/support.runtime/csignal.pass.cpp
-
curl -L -o csignal.pass.cpp https://huggingface.co/camenduru/thrust/resolve/main/dependencies/libcudacxx/libcxx/test/std/language.support/support.runtime/csignal.pass.cpp
1.19 kB
| //===----------------------------------------------------------------------===// | |
| // | |
| // 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; | |
| } | |