diff options
Diffstat (limited to 'test/example/module-splitting.cpp')
-rw-r--r-- | test/example/module-splitting.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/example/module-splitting.cpp b/test/example/module-splitting.cpp index bbe57a657..95d6de44c 100644 --- a/test/example/module-splitting.cpp +++ b/test/example/module-splitting.cpp @@ -451,10 +451,12 @@ void test_minimized_exports() { Expression* callBody = nullptr; Builder builder(primary); + auto funcType = Signature(Type::none, Type::none); for (size_t i = 0; i < 10; ++i) { Name name = std::to_string(i); - primary.addFunction(Builder::makeFunction(name, {}, {}, builder.makeNop())); + primary.addFunction( + Builder::makeFunction(name, funcType, {}, builder.makeNop())); keep.insert(name); callBody = builder.blockify(callBody, builder.makeCall(name, {}, Type::none)); @@ -469,7 +471,7 @@ void test_minimized_exports() { } } - primary.addFunction(Builder::makeFunction("call", {}, {}, callBody)); + primary.addFunction(Builder::makeFunction("call", funcType, {}, callBody)); ModuleSplitting::Config config; config.primaryFuncs = std::move(keep); |