aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/consts_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-06-30 19:34:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-06-30 19:34:41 +0200
commit664ef9a3e1016e80fc1fcbbef6e9f66a2ededfe6 (patch)
tree3f5829d9ad2ada25336f3bf98b85a65ec517c22e /pkg/compiler/consts_test.go
parent9054fae0162950c1fd961819f64b1ac90e5930b3 (diff)
pkg/compiler: check for unused declarations
Error on unused structs/unions/resources/flags. Finds tons of bugs.
Diffstat (limited to 'pkg/compiler/consts_test.go')
-rw-r--r--pkg/compiler/consts_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/compiler/consts_test.go b/pkg/compiler/consts_test.go
index 522062991..37c2625d1 100644
--- a/pkg/compiler/consts_test.go
+++ b/pkg/compiler/consts_test.go
@@ -37,7 +37,7 @@ func TestExtractConsts(t *testing.T) {
"CONST6", "CONST7", "CONST8", "CONST9", "CONST10",
"CONST11", "CONST12", "CONST13", "CONST14", "CONST15",
"CONST16", "CONST17", "CONST18", "CONST19", "CONST20",
- "CONST21",
+ "CONST21", "CONST22", "CONST23", "CONST24",
}
sort.Strings(wantConsts)
if !reflect.DeepEqual(info.Consts, wantConsts) {