From 664ef9a3e1016e80fc1fcbbef6e9f66a2ededfe6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 30 Jun 2018 19:34:41 +0200 Subject: pkg/compiler: check for unused declarations Error on unused structs/unions/resources/flags. Finds tons of bugs. --- pkg/compiler/testdata/consts.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/compiler/testdata/consts.txt') diff --git a/pkg/compiler/testdata/consts.txt b/pkg/compiler/testdata/consts.txt index f7c8daa35..ef248a1e0 100644 --- a/pkg/compiler/testdata/consts.txt +++ b/pkg/compiler/testdata/consts.txt @@ -35,3 +35,6 @@ foo$1(a ptr[in, templ1[CONST20]]) str2 { f1 int8 } [size[CONST21]] + +_ = CONST22, CONST23 +_ = CONST24 -- cgit mrf-deployment