From 5ef8dbdf5a63ccf7e069527dbb2493dc2ef0c319 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Mar 2018 15:44:54 +0100 Subject: pkg/compiler: support size attribute for unions --- pkg/compiler/testdata/errors2.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/compiler/testdata/errors2.txt') diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt index a8d29789a..86148a563 100644 --- a/pkg/compiler/testdata/errors2.txt +++ b/pkg/compiler/testdata/errors2.txt @@ -91,6 +91,14 @@ u1 [ f2 len[f1, int32] ### len target f1 does not exist ] +u2 [ + f1 int8 +] [size[0]] ### size attribute has bad value 0, expect [1, 1<<20] + +u3 [ + f1 int8 +] [varlen, size[8]] ### varlen union u3 has size attribute + foo$200(a ptr[in, s2]) foo$201(a ptr[in, s1]) foo$202(a u1) -- cgit mrf-deployment