From 2cfe62f82077ba012aef55db5288985bc0c426d9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 5 Jan 2022 20:05:11 +0100 Subject: pkg/compiler: add out_overlay field attribute --- pkg/compiler/testdata/errors.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'pkg/compiler/testdata/errors.txt') diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt index 65eaf8a97..6cc2e2b0f 100644 --- a/pkg/compiler/testdata/errors.txt +++ b/pkg/compiler/testdata/errors.txt @@ -391,3 +391,24 @@ struct$perfielddir { f5 int32 (out, inout) ### arg/field has multiple direction attributes f6 int32 (in, out, inout) ### arg/field has multiple direction attributes } + +struct$overlay0 { + f0 int32 (out_overlay) ### out_overlay attribute must not be specified on the first field + f1 int32 (out_overlay) ### multiple out_overlay attributes +} + +struct$overlay1 { + f0 int32 + f1 int32 (out_overlay, out_overlay) ### duplicate arg/field f1 attribute out_overlay + f2 int32 (out_overlay) ### multiple out_overlay attributes +} + +struct$overlay2 { + f0 int32 (in) + f1 int32 (out_overlay) ### mix of direction and out_overlay attributes is not supported +} + +union$overlay0 [ + f0 int32 + f1 int32 (out_overlay) ### unknown arg/field f1 attribute out_overlay +] -- cgit mrf-deployment