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/errors2.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pkg/compiler/testdata/errors2.txt') diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt index 111db587f..e5a51b4a9 100644 --- a/pkg/compiler/testdata/errors2.txt +++ b/pkg/compiler/testdata/errors2.txt @@ -386,3 +386,15 @@ s405 { f3 int64:16[-65541:-10] ### int range [18446744073709486075:18446744073709551606] is too large for base type of size 16 f4 int16:8[-255:0] ### int range [18446744073709551361:0] is too large for base type of size 8 } + +# Field attributes. + +foo$overlay(a ptr[in, struct$overlay0]) + +struct$overlay0 { + f0 int32 + f1 const[0, int32] (out_overlay) ### const type must not be used as output + f2 ptr[in, int32] ### ptr type must not be used as output + f3 proc[0, 1, int32] ### proc type must not be used as output + f4 bytesize[f1, int32] ### bytesize type must not be used as output +} -- cgit mrf-deployment