From a793204dd2d8384659b030af537f07da094dfda8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 19 Feb 2018 21:13:41 +0100 Subject: pkg/compiler: fix corner case in alignment calculation --- prog/size_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'prog/size_test.go') diff --git a/prog/size_test.go b/prog/size_test.go index 3b85d498a..bacc2c5e3 100644 --- a/prog/size_test.go +++ b/prog/size_test.go @@ -132,7 +132,11 @@ func TestAssignSize(t *testing.T) { }, { "syz_test$length24(&(0x7f0000000000)={{0x0, {0x0}}, {0x0, {0x0}}})", - "syz_test$length24(&(0x7f0000000000)={{0x0, {0x8}}, {0x0, {0xc}}})", + "syz_test$length24(&(0x7f0000000000)={{0x0, {0x8}}, {0x0, {0x10}}})", + }, + { + "syz_test$length26(&(0x7f0000000000), 0x0)", + "syz_test$length26(&(0x7f0000000000), 0x8)", }, } -- cgit mrf-deployment