diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-01-17 19:04:37 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-01-17 19:04:37 +0100 |
| commit | 1ac75f06add54089e4910ecb6a97198336155c63 (patch) | |
| tree | e7d5219d6589e4ef018a5b5822a4da05b9249300 /executor/test.go | |
| parent | 8ead82246bc00830d0271933df316e973be4ebcc (diff) | |
executor: fix copyin of values
Currently non-bitfield values are copied incorrectly.
Probably all turned into zeros or something.
Fix that. Add test.
Diffstat (limited to 'executor/test.go')
| -rw-r--r-- | executor/test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/executor/test.go b/executor/test.go index 09a1c130b..e9709b8d0 100644 --- a/executor/test.go +++ b/executor/test.go @@ -5,9 +5,14 @@ package executor +// int test_copyin(); // int test_kvm(); import "C" +func testCopyin() int { + return int(C.test_copyin()) +} + func testKVM() int { return int(C.test_kvm()) } |
