From 5110ff445ddb5a09a13e17b187c06d2dc3a7d52a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Mar 2018 11:49:19 +0100 Subject: pkg/compiler: switch attributes from Ident to Type This allows parametrized attributes like size[10]. But this is not used for now. --- pkg/compiler/testdata/errors.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pkg/compiler/testdata/errors.txt') diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt index 8ea03bc7b..2b3a7539f 100644 --- a/pkg/compiler/testdata/errors.txt +++ b/pkg/compiler/testdata/errors.txt @@ -160,6 +160,18 @@ s7 { f1 ptr64[in, int32] } +s8 { + f1 int8 +} [unknown] ### unknown struct s8 attribute unknown + +s9 { + f1 int8 +} ["foo"[0]] ### bad struct/union attribute + +s10 { + f1 int8 +} [packed[0]] ### packed attribute had args + u3 [ f1 int8 f2 int32 -- cgit mrf-deployment