ClickHouse/contrib/libhdfs3-cmake/CMake/CMakeTestCompileNestedException.cpp
Alexander Tokmakov 9d267d2478 Revert "delete submodule"
This reverts commit 07a161301b.
2021-03-26 10:47:57 +03: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"));
}
}