summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination_all-features.txt
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-10-08 16:00:20 -0700
committerGitHub <noreply@github.com>2020-10-08 16:00:20 -0700
commitc8661e115309626a87708cb25067b6a3210367fe (patch)
treeb46ab556fdb31bb11006ffe31e77f80ccb040468 /test/passes/duplicate-function-elimination_all-features.txt
parentd68896d8c54f538c04d4fe43825a63ba135ed0fe (diff)
downloadbinaryen-c8661e115309626a87708cb25067b6a3210367fe.tar.gz
binaryen-c8661e115309626a87708cb25067b6a3210367fe.tar.bz2
binaryen-c8661e115309626a87708cb25067b6a3210367fe.zip
Fuzz fix for DuplicateFunctionElimination (#3204)
The replaceFunctions utility replaced exports by name, but did not check the kind, so it could get confused when names happen to overlap.
Diffstat (limited to 'test/passes/duplicate-function-elimination_all-features.txt')
-rw-r--r--test/passes/duplicate-function-elimination_all-features.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/passes/duplicate-function-elimination_all-features.txt b/test/passes/duplicate-function-elimination_all-features.txt
index 0c6651b97..aa234da67 100644
--- a/test/passes/duplicate-function-elimination_all-features.txt
+++ b/test/passes/duplicate-function-elimination_all-features.txt
@@ -8,3 +8,13 @@
(ref.func $0)
)
)
+(module
+ (type $none_=>_none (func))
+ (memory $foo 16 16)
+ (global $bar i32 (i32.const 0))
+ (export "memory" (memory $foo))
+ (export "global" (global $bar))
+ (func $bar
+ (nop)
+ )
+)