Files
codeql/cpp/ql/test/library-tests/syntax-zoo/rethrow_error.cpp
2019-08-06 14:10:25 +02:00

24 lines
234 B
C++

class Error {
public:
Error () {}
virtual ~Error() {}
};
template <typename T>
int fun2() {
try {
}
catch (Error&) {
throw;
}
catch (...) {
return 1;
}
return 0;
}
void run_fun2(void) {
fun2<int>();
}