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

11 lines
171 B
C++
Raw Normal View History

#include <exception>
#include <stdexcept>
int main() {
try {
throw 2;
} catch (int) {
std::throw_with_nested(std::runtime_error("test"));
}
}