Mark a frontend error in DeadStoreOfLocal tests as expected.

This commit is contained in:
Max Schaefer
2020-04-14 10:21:36 +01:00
parent 13762bd76c
commit ef497afc20
2 changed files with 3 additions and 1 deletions

View File

@@ -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. |

View File

@@ -2,6 +2,8 @@ package p
import "fmt"
// codeql test: expect frontend errors
func test() {
if false {
x := deadStore() // OK