diff options
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
| -rw-r--r-- | pkg/compiler/testdata/errors.txt | 21 |
1 files changed, 21 insertions, 0 deletions
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 +] |
