mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
Mark a frontend error in DeadStoreOfLocal tests as expected.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
| main.go:25:2:25:2 | assignment to x | This definition of x is never used. |
|
||||
| main.go:27:2:27:2 | assignment to x | This definition of x is never used. |
|
||||
| testdata.go:32:2:32:2 | assignment to x | This definition of x is never used. |
|
||||
| testdata.go:37:2:37:2 | assignment to x | This definition of x is never used. |
|
||||
| testdata.go:61:2:61:2 | assignment to x | This definition of x is never used. |
|
||||
|
||||
@@ -2,6 +2,8 @@ package p
|
||||
|
||||
import "fmt"
|
||||
|
||||
// codeql test: expect frontend errors
|
||||
|
||||
func test() {
|
||||
if false {
|
||||
x := deadStore() // OK
|
||||
|
||||
Reference in New Issue
Block a user