mirror of
https://github.com/github/codeql.git
synced 2026-03-29 11:48:16 +02:00
12 lines
182 B
Plaintext
12 lines
182 B
Plaintext
/**
|
|
* @name Test for destructors
|
|
*/
|
|
|
|
import csharp
|
|
|
|
where
|
|
forex(Stmt s | exists(Destructor d | d.getBody().getAChild() = s) |
|
|
s instanceof LocalVariableDeclStmt
|
|
)
|
|
select 1
|