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 --- prog/size_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'prog/size_test.go') 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 { -- cgit mrf-deployment