aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-05 16:49:07 +0800
committerobscuren <geffobscura@gmail.com>2014-04-05 16:49:07 +0800
commit90bb512f420f204f50ba451a4a25682ca8443746 (patch)
tree78f58109e02bc0be780e644e04bd8fd8b733cd4d
parent7d0348e4baf45197ca506070e06e756a4ba6ccf6 (diff)
downloaddexon-90bb512f420f204f50ba451a4a25682ca8443746.tar
dexon-90bb512f420f204f50ba451a4a25682ca8443746.tar.gz
dexon-90bb512f420f204f50ba451a4a25682ca8443746.tar.bz2
dexon-90bb512f420f204f50ba451a4a25682ca8443746.tar.lz
dexon-90bb512f420f204f50ba451a4a25682ca8443746.tar.xz
dexon-90bb512f420f204f50ba451a4a25682ca8443746.tar.zst
dexon-90bb512f420f204f50ba451a4a25682ca8443746.zip
Update
-rw-r--r--ethchain/vm_test.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go
index 838f12f56..85ec4c693 100644
--- a/ethchain/vm_test.go
+++ b/ethchain/vm_test.go
@@ -83,18 +83,23 @@ func TestRun4(t *testing.T) {
state := NewState(ethutil.NewTrie(db, ""))
asm, err := mutan.Compile(strings.NewReader(`
- a = 10
- b = 10
+ int32 a = 10
+ int32 b = 10
if a == b {
- c = 10
+ int32 c = 10
if c == 10 {
- d = 1000
- e = 10
+ int32 d = 1000
+ int32 e = 10
}
}
store[0] = 20
store[a] = 20
+ store[b] = this.caller()
+
+ int8[10] ret
+ int8[10] arg
+ call(1234, 0, 100000000, arg, ret)
`), false)
if err != nil {
fmt.Println(err)