summaryrefslogtreecommitdiff
path: root/test/example/relooper-fuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/relooper-fuzz.c')
-rw-r--r--test/example/relooper-fuzz.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/example/relooper-fuzz.c b/test/example/relooper-fuzz.c
index ecb204347..65d00aa5d 100644
--- a/test/example/relooper-fuzz.c
+++ b/test/example/relooper-fuzz.c
@@ -256,12 +256,14 @@ int main() {
// memory
BinaryenSetMemory(module, 1, 1, "mem", NULL, NULL, NULL, 0);
+ assert(BinaryenModuleValidate(module));
+
+ BinaryenModulePrint(module);
+
BinaryenModuleOptimize(module);
assert(BinaryenModuleValidate(module));
- // write it out
-
BinaryenModulePrint(module);
BinaryenModuleDispose(module);