kokkos-execution
0.0.1
Toggle main menu visibility
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
7
namespace
Tests::Std
{
8
10
consteval
bool
test_escaping_exception
() {
11
throw
std::invalid_argument{
"escaping"
};
12
}
13
14
static_assert
(
test_escaping_exception
());
15
16
}
// namespace Tests::Std
Tests::Std
Definition
test_constexpr_exception.cpp:19
Tests::Std::test_escaping_exception
consteval bool test_escaping_exception()
Definition
test_constexpr_exception.failure.cpp:10
tests
std
test_constexpr_exception.failure.cpp
Generated on
for kokkos-execution by
1.18.0