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

14 lines
312 B
Plaintext

/**
* @name Test for local constant access
*/
import csharp
from Method m, LocalVariableAccess e, LocalConstant c
where m.hasName("MainLocalConstDecl")
and e.getEnclosingCallable() = m
and e.getTarget() = c
and c.getName() = "pi"
and e.getParent().getParent().getParent() instanceof Call
select m, e