diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-02 15:44:54 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:10:27 +0100 |
| commit | 5ef8dbdf5a63ccf7e069527dbb2493dc2ef0c319 (patch) | |
| tree | 25f38d85ac74951764770ed777033ee8ed9ac542 /pkg/compiler/testdata | |
| parent | a339951e5f3c045290340330bcea3ff4155b8334 (diff) | |
pkg/compiler: support size attribute for unions
Diffstat (limited to 'pkg/compiler/testdata')
| -rw-r--r-- | pkg/compiler/testdata/errors2.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
