summaryrefslogtreecommitdiff
path: root/test/example/module-splitting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/module-splitting.cpp')
-rw-r--r--test/example/module-splitting.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/example/module-splitting.cpp b/test/example/module-splitting.cpp
index ad0da84a8..ab42ff5fd 100644
--- a/test/example/module-splitting.cpp
+++ b/test/example/module-splitting.cpp
@@ -386,4 +386,12 @@ int main() {
(call $foo (i32.const 1))
)
))");
+
+ // Multiple exports of a secondary function
+ do_test({}, R"(
+ (module
+ (export "foo1" (func $foo))
+ (export "foo2" (func $foo))
+ (func $foo)
+ ))");
}