Files
codeql/csharp/ql/test/library-tests/statements/TryCatch2.ql
2018-12-20 10:19:59 +01:00

13 lines
218 B
Plaintext

/**
* @name Test for try catches
*/
import csharp
from Method m, TryStmt s
where
s.getEnclosingCallable() = m and
m.getName() = "MainTryThrow" and
count(s.getACatchClause()) = 2
select s, s.getACatchClause()