aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-01-05 20:05:11 +0100
committerDmitry Vyukov <dvyukov@google.com>2022-01-11 16:30:08 +0100
commit2cfe62f82077ba012aef55db5288985bc0c426d9 (patch)
tree501d83deb358a230d157c9d7efc6fc393e239472 /pkg/compiler/testdata/errors.txt
parent16e21d13ea26a631e9b3a30c94635b1d565fd78f (diff)
pkg/compiler: add out_overlay field attribute
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt21
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
+]