ClickHouse/contrib/libhdfs3-cmake/CMake/CMakeTestCompileNestedException.cpp

11 lines
171 B
C++
Raw Normal View History

2018-11-19 08:17:09 +00:00
#include <exception>
#include <stdexcept>
int main() {
try {
throw 2;
} catch (int) {
std::throw_with_nested(std::runtime_error("test"));
}
}