aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorNecip Fazil Yildiran <necip@google.com>2020-08-10 14:43:38 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-08-13 13:50:25 +0200
commitf5442bde55872d703f184f8617329f706bad8149 (patch)
tree14e121020d6aacd857b80351f01546818f19a74b /pkg/compiler/testdata/errors.txt
parentee7cb8b69583db417b187b53f4765c3a403cd4cf (diff)
pkg, prog: add per-field direction attribute
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt
index cc0f47508..d3658d239 100644
--- a/pkg/compiler/testdata/errors.txt
+++ b/pkg/compiler/testdata/errors.txt
@@ -346,3 +346,13 @@ struct$fmt0 {
f0 fmt[dec, int8:3] ### unexpected ':', only struct fields can be bitfields
f1 int32:-1 ### bitfield of size 18446744073709551615 is too large for base type of size 32
}
+
+struct$perfielddir {
+ f0 int32 (in, in) ### duplicate arg/field f0 attribute in
+ f1 int32 (out, out) ### duplicate arg/field f1 attribute out
+ f2 int32 (inout, inout) ### duplicate arg/field f2 attribute inout
+ f3 int32 (in, out) ### arg/field has multiple direction attributes
+ f4 int32 (in, inout) ### arg/field has multiple direction attributes
+ f5 int32 (out, inout) ### arg/field has multiple direction attributes
+ f6 int32 (in, out, inout) ### arg/field has multiple direction attributes
+} \ No newline at end of file