From 1e85f7b9af8e29f06a22eb1ff325de2a40072738 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 29 Apr 2018 10:56:48 +0200 Subject: pkg/ast: support char constants Frequently it's useful to do something like: int8['a':'z'] punctuation = ',', '-', ':' --- pkg/compiler/testdata/errors2.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/compiler/testdata/errors2.txt') diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt index 86148a563..69fa46e62 100644 --- a/pkg/compiler/testdata/errors2.txt +++ b/pkg/compiler/testdata/errors2.txt @@ -183,5 +183,6 @@ foo$505(a proc[20, 0]) ### proc per-process values must not be 0 foo$506(a ptr[in, array[int32, 0]]) ### arrays of size 0 are not supported foo$507(a ptr[in, array[int32, 0:0]]) ### arrays of size 0 are not supported foo$508(a ptr[in, string["foo", 3]]) ### string value "foo\x00" exceeds buffer length 3 +foo$509(a int8['b':'a']) ### bad int range [98:97] type type500 proc[C1, 8, int8] ### values starting from 1 with step 8 overflow base type for 32 procs -- cgit mrf-deployment