Add const folding, fix returning values from blocks

This commit is contained in:
Jef
2018-12-14 16:20:28 +01:00
parent 17ecd049a1
commit b832832c76
3 changed files with 200 additions and 126 deletions

View File

@@ -259,7 +259,8 @@ fn function_write_args_spill_to_stack() {
assert_eq!(
{
let translated = translate_wat(code);
let out: u32 = unsafe { translated.execute_func(0, (11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)) };
let out: u32 =
unsafe { translated.execute_func(0, (11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)) };
out
},
11