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

12 lines
183 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