aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-02 11:49:19 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-05 12:10:27 +0100
commit5110ff445ddb5a09a13e17b187c06d2dc3a7d52a (patch)
tree4a482d23c3e284e996539a1677dee246e9e7b0a5 /pkg/compiler/testdata
parentdb01d57e9144125b368d14815d08e897ff496604 (diff)
pkg/compiler: switch attributes from Ident to Type
This allows parametrized attributes like size[10]. But this is not used for now.
Diffstat (limited to 'pkg/compiler/testdata')
-rw-r--r--pkg/compiler/testdata/errors.txt12
1 files changed, 12 insertions, 0 deletions
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