diff options
Diffstat (limited to 'test/wasm2js/unreachable-later.wast')
-rw-r--r-- | test/wasm2js/unreachable-later.wast | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/test/wasm2js/unreachable-later.wast b/test/wasm2js/unreachable-later.wast new file mode 100644 index 000000000..0af552212 --- /dev/null +++ b/test/wasm2js/unreachable-later.wast @@ -0,0 +1,86 @@ +(module + (type $0 (func (param i32) (result i32))) + (global $global$0 (mut i32) (i32.const 10)) + (export "func_50" (func $0)) + (func $0 (; 0 ;) (type $0) (param $0 i32) (result i32) + (if + (global.get $global$0) + (return + (local.get $0) + ) + ) + (if + (global.get $global$0) + (return + (local.get $0) + ) + ) + (global.set $global$0 + (i32.const 0) + ) + (if + (i32.eqz + (if (result i32) + (i32.eqz + (loop $label$3 (result i32) + (br_if $label$3 + (i32.eqz + (if (result i32) + (block $label$4 (result i32) + (if + (global.get $global$0) + (return + (local.get $0) + ) + ) + (drop + (if (result f32) + (block $label$6 (result i32) + (if + (global.get $global$0) + (return + (local.get $0) + ) + ) + (i32.const 65445) + ) + (block (result f32) + (if + (global.get $global$0) + (return + (local.get $0) + ) + ) + (f32.const 0) + ) + (f32.const 1) + ) + ) + (if + (global.get $global$0) + (return + (local.get $0) + ) + ) + (i32.const 1) + ) + (i32.const 32) + (i32.const 0) + ) + ) + ) + (i32.const 1) + ) + ) + (i32.const 0) + (i32.const 1) + ) + ) + (return + (i32.const -255) + ) + (unreachable) + ) + ) +) + |