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

10 lines
180 B
Plaintext

/**
* @name Test for empty blocks
*/
import csharp
from Method m
where m.getName() = "Main"
and count(BlockStmt b | b.getEnclosingCallable() = m and b.isEmpty()) = 2
select m