mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01: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
|