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

13 lines
183 B
Plaintext

/**
* @name Test for try catches
*/
import csharp
where
forall(TryStmt s |
exists(s.getBlock()) and
(exists(s.getACatchClause()) or exists(s.getFinally()))
)
select 1