mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
24 lines
234 B
C++
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>();
|
|
}
|
|
|