diff options
Diffstat (limited to 'pkg/compiler/testdata')
| -rw-r--r-- | pkg/compiler/testdata/all.txt | 2 | ||||
| -rw-r--r-- | pkg/compiler/testdata/errors.txt | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt index 6863e5836..49cc1ffb9 100644 --- a/pkg/compiler/testdata/all.txt +++ b/pkg/compiler/testdata/all.txt @@ -10,6 +10,8 @@ foo$5(a int8['a':'z']) foo$6(a int8[-20:-10]) foo$7(a int8[-20:20]) foo$8(a ptr[in, strings]) +foo$9(a ptr[out, ptr[in, string]]) +foo$10(a ptr[out, buffer[in]]) resource r0[intptr] 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]) |
