aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-04 19:52:55 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-04 20:25:22 +0200
commit740662e03a9abc235689531ec363c852f3f1b21c (patch)
treec725c2988df8295e1f302156b51e834ce24177bd /pkg/compiler/testdata/errors.txt
parenta5c115a64b407c371994268d42cc2ba8bbc4c922 (diff)
pkg/compiler: reserve in/out/inout/opt names
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt
index 11fc9a495..6be60ef91 100644
--- a/pkg/compiler/testdata/errors.txt
+++ b/pkg/compiler/testdata/errors.txt
@@ -107,6 +107,21 @@ foo$42(a proc[20, 0]) ### proc per-process values must not be 0
foo$43(a ptr[in, string[1]]) ### unexpected int 1, string arg must be a string literal or string flags
foo$44(a int32) len[a] ### len can't be syscall return
foo$45(a int32) len[b] ### len can't be syscall return
+foo$46(a ptr[in, in]) ### unknown type in
+
+opt { ### struct uses reserved name opt
+ f1 int32
+}
+
+in = 1, 2 ### flags uses reserved name in
+out = "1", "2" ### string flags uses reserved name out
+
+out [ ### union uses reserved name out
+ f1 int32
+ f2 int8
+]
+
+resource inout[int32] ### resource uses reserved name inout
bar()