From f5442bde55872d703f184f8617329f706bad8149 Mon Sep 17 00:00:00 2001 From: Necip Fazil Yildiran Date: Mon, 10 Aug 2020 14:43:38 +0000 Subject: pkg, prog: add per-field direction attribute --- pkg/compiler/testdata/errors.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkg/compiler/testdata/errors.txt') 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 -- cgit mrf-deployment