aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-01-06 18:04:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2022-01-11 16:30:08 +0100
commit14cc59eef8374ac8013a05d5d14c4cd4af9d0979 (patch)
tree558db1b673e2b96ddefd7cb4776b7d6fe28ca9ec /pkg/compiler/testdata/errors.txt
parent1a2fb60b1e34cbc7f21351da8f9e3e253173bde8 (diff)
pkg/compiler: prohibit use of direction attribute on union fields
Direction attributes on unions work in a confusing way and don't do what users may think they do. Now we have out_overlay attribute for structs that allows to have overlapping input and output fields.
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt
index 6cc2e2b0f..6d258cf50 100644
--- a/pkg/compiler/testdata/errors.txt
+++ b/pkg/compiler/testdata/errors.txt
@@ -412,3 +412,8 @@ union$overlay0 [
f0 int32
f1 int32 (out_overlay) ### unknown arg/field f1 attribute out_overlay
]
+
+union$directions [
+ f1 int32 (in) ### unknown arg/field f1 attribute in
+ f2 int32 (out) ### unknown arg/field f2 attribute out
+]