aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-04 19:53:02 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-04 20:25:22 +0200
commitdbb49d02117ee51e0a77de6e935600eb005cb804 (patch)
treedc4db66dfdc72b4cb9d92a8cfdd878d7a0e8bbfb /pkg/compiler/testdata/errors.txt
parent622a1ffd7236529d9774498742810ce1102b009f (diff)
pkg/compiler: prohibit arrays of size 0
This is pointless and the only case that can yield 0 static type size.
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt
index c339dcb80..629c2c864 100644
--- a/pkg/compiler/testdata/errors.txt
+++ b/pkg/compiler/testdata/errors.txt
@@ -110,6 +110,9 @@ foo$45(a int32) len[b] ### len can't be syscall return
foo$46(a ptr[in, in]) ### unknown type in
foo$47(a int32:2) ### unexpected ':', only struct fields can be bitfields
foo$48(a ptr[in, int32:7]) ### unexpected ':', only struct fields can be bitfields
+foo$49(a ptr[in, array[int32, 0:1]])
+foo$50(a ptr[in, array[int32, 0]]) ### arrays of size 0 are not supported
+foo$51(a ptr[in, array[int32, 0:0]]) ### arrays of size 0 are not supported
opt { ### struct uses reserved name opt
f1 int32