ClickHouse/contrib/libhdfs3-cmake/CMake/CMakeTestCompileNestedException.cpp
2018-11-19 16:17:09 +08:00

11 lines
171 B
C++

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