aboutsummaryrefslogtreecommitdiffstats
path: root/prog/size_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-19 21:13:41 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-19 21:48:20 +0100
commita793204dd2d8384659b030af537f07da094dfda8 (patch)
treef8c9fb4998f5edf6dae12623a175aadd3f1a6275 /prog/size_test.go
parentfc3afc716488d3003f1e39d74a8bba1ca8db0e13 (diff)
pkg/compiler: fix corner case in alignment calculation
Diffstat (limited to 'prog/size_test.go')
-rw-r--r--prog/size_test.go6
1 files changed, 5 insertions, 1 deletions
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)",
},
}