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 /prog/size_test.go | |
| parent | a339951e5f3c045290340330bcea3ff4155b8334 (diff) | |
pkg/compiler: support size attribute for unions
Diffstat (limited to 'prog/size_test.go')
| -rw-r--r-- | prog/size_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/prog/size_test.go b/prog/size_test.go index f5ac9a958..08b7cba92 100644 --- a/prog/size_test.go +++ b/prog/size_test.go @@ -142,6 +142,10 @@ func TestAssignSize(t *testing.T) { "syz_test$length27(&(0x7f0000000000), 0x0)", "syz_test$length27(&(0x7f0000000000), 0x2a)", }, + { + "syz_test$length28(&(0x7f0000000000), 0x0)", + "syz_test$length28(&(0x7f0000000000)=@f1, 0x2a)", + }, } for i, test := range tests { |
