aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors2.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-23 14:00:41 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-23 14:00:41 +0100
commit5c1e02070621f89371ac87c68e0083893a9f9461 (patch)
tree66c5b95a34d6f830cdf6b021920a2a2acb781a33 /pkg/compiler/testdata/errors2.txt
parent7a7c747c6f5f732d614cea2404386913e68981a0 (diff)
pkg/compiler: prohibit len of other union options
Diffstat (limited to 'pkg/compiler/testdata/errors2.txt')
-rw-r--r--pkg/compiler/testdata/errors2.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt
index 6902553af..f00a6afb4 100644
--- a/pkg/compiler/testdata/errors2.txt
+++ b/pkg/compiler/testdata/errors2.txt
@@ -73,8 +73,14 @@ s2 {
f1 s1
}
+u1 [
+ f1 ptr[in, array[int8]]
+ f2 len[f1, int32] ### len target f1 does not exist
+]
+
foo$200(a ptr[in, s2])
foo$201(a ptr[in, s1])
+foo$202(a u1)
# Resource ctor tests.