aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-04-01 12:46:10 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-04-01 12:46:10 +0200
commit162bd26be4e47d89f305435f7a1917b023138ed6 (patch)
treeb77571bea2cbc1baf320deae9895e1a185670a4b /pkg/compiler/testdata/errors.txt
parent3e1cf9ad8a569844caebca4ce63759f15324c422 (diff)
pkg/compiler: make buffer alias to ptr[array[int8]]
Ptr type has special handling of direction (pointers are always input). But buffer type missed this special case all the time. Make buffer less special by aliasing to the ptr[array[int8]] type. As the result buffer type can't have optional trailing "opt" attribute because we don't have such support for templates yet. Change such cases to use ptr type directly. Fixes #1097
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt
index 55ec40901..e95c3be7d 100644
--- a/pkg/compiler/testdata/errors.txt
+++ b/pkg/compiler/testdata/errors.txt
@@ -71,9 +71,9 @@ resource r9["foo"] ### unexpected string "foo", expect type
foo$7(a r0, a1 r2[opt])
foo$8(a fileoff[a, b, c]) ### wrong number of arguments for type fileoff, expect no arguments
foo$9(a buffer[inout])
-foo$10(a buffer[intout]) ### unexpected value intout for direction argument of buffer type, expect [in out inout]
-foo$11(a buffer["in"]) ### unexpected string "in" for direction argument of buffer type, expect [in out inout]
-foo$12(a buffer[10]) ### unexpected int 10 for direction argument of buffer type, expect [in out inout]
+foo$10(a buffer[intout]) ### unexpected value intout for direction argument of ptr type, expect [in out inout]
+foo$11(a buffer["in"]) ### unexpected string "in" for direction argument of ptr type, expect [in out inout]
+foo$12(a buffer[10]) ### unexpected int 10 for direction argument of ptr type, expect [in out inout]
foo$13(a int32[2:3])
foo$14(a int32[2:2])
foo$16(a int32[3])