Files
codeql/csharp/ql/test/library-tests/statements/If1.ql
2018-08-02 17:53:23 +01:00

8 lines
140 B
Plaintext

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