Repository navigation
Commit d65bfab
Test unused static variable with side-effecting initializer
Add a minimal initializer that increments a global and record the current unused-static-variable alert as spurious.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 835afbb commit d65bfab
2 files changed
Lines changed: 8 additions & 0 deletions
File tree
- cpp/ql/test/query-tests/Best Practices/Unused Entities/UnusedStaticVariables
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments