aboutsummaryrefslogtreecommitdiffstats
path: root/prog/size_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-03-15 21:16:13 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-03-17 21:19:13 +0100
commit924f7606047a430a9b313c135b782e1e8f852bec (patch)
tree649fbf186af5268815f16884875f92d948ad57b0 /prog/size_test.go
parent5de34a784c610ab08888c185dd0c09f542d62d4f (diff)
pkg/compiler: ensure consistency of syscall argument types
Ensure that we don't have conflicting sizes for the same argument of the same syscall, e.g.: foo$1(a int16) foo$2(a int32) This is useful for several reasons: - we will be able avoid morphing syscalls into other syscalls - we will be able to figure out more precise sizes for args (lots of them are implicitly intptr, which is the largest type on most important arches) - found few bugs in linux descriptions Update #477 Update #502
Diffstat (limited to 'prog/size_test.go')
-rw-r--r--prog/size_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/size_test.go b/prog/size_test.go
index 7b248bd4f..5356c5263 100644
--- a/prog/size_test.go
+++ b/prog/size_test.go
@@ -96,8 +96,8 @@ func TestAssignSize(t *testing.T) {
"test$length14(&(0x7f0000000000)={0xff, 0xff, [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]}, &(0x7f0000001000)=0x30)",
},
{
- "test$length15(0xff, 0x0)",
- "test$length15(0xff, 0x2)",
+ "test_length15(0xff, 0x0)",
+ "test_length15(0xff, 0x2)",
},
{
"test$length16(&(0x7f0000000000)={[0x42, 0x42], 0xff, 0xff, 0xff, 0xff, 0xff})",