summaryrefslogtreecommitdiff
path: root/test/unreachable-pops.wasm.fromBinary
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-08-22 09:47:50 -0700
committerGitHub <noreply@github.com>2017-08-22 09:47:50 -0700
commitad8bc65685b19c0c3323dbb0a5cf2b6f709c7b92 (patch)
treefa8fd2da45450d75d5043f99baa09aa6af7f9b5f /test/unreachable-pops.wasm.fromBinary
parente5e77281ca516b7b802eb6c9b4bc3b39e2a8201e (diff)
downloadbinaryen-ad8bc65685b19c0c3323dbb0a5cf2b6f709c7b92.tar.gz
binaryen-ad8bc65685b19c0c3323dbb0a5cf2b6f709c7b92.tar.bz2
binaryen-ad8bc65685b19c0c3323dbb0a5cf2b6f709c7b92.zip
Ignore unreachable code in wasm binaries (#1122)
Ignoring unreachable code in wasm binaries lets us avoid corner cases with unstructured code in wasm binaries that is a poor fit for Binaryen's structured IR.
Diffstat (limited to 'test/unreachable-pops.wasm.fromBinary')
-rw-r--r--test/unreachable-pops.wasm.fromBinary10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unreachable-pops.wasm.fromBinary b/test/unreachable-pops.wasm.fromBinary
new file mode 100644
index 000000000..4e14995cf
--- /dev/null
+++ b/test/unreachable-pops.wasm.fromBinary
@@ -0,0 +1,10 @@
+(module
+ (type $0 (func (result i32)))
+ (memory $0 0)
+ (func $0 (type $0) (result i32)
+ (block $label$0 (result i32)
+ (unreachable)
+ )
+ )
+)
+