From 740662e03a9abc235689531ec363c852f3f1b21c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Sep 2017 19:52:55 +0200 Subject: pkg/compiler: reserve in/out/inout/opt names --- pkg/compiler/testdata/errors.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pkg/compiler/testdata/errors.txt') 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() -- cgit mrf-deployment