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

9 lines
141 B
Plaintext

/**
* @name Test for well-formed ifs
*/
import csharp
where forall(IfStmt m | exists(m.getCondition()) and exists(m.getThen()))
select 1