kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_constexpr_exception.failure.cpp
Go to the documentation of this file.
1#include <stdexcept>
2
3#if !defined(__cpp_constexpr_exceptions)
4# error "C++ constexpr exception is required for this test."
5#endif
6
7namespace Tests::Std {
8
10consteval bool test_escaping_exception() {
11 throw std::invalid_argument{"escaping"};
12}
13
14static_assert(test_escaping_exception());
15
16} // namespace Tests::Std
consteval bool test_escaping_exception()