summaryrefslogtreecommitdiff
path: root/test/example/relooper-fuzz.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-07-19 20:01:35 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-07-20 11:16:21 -0700
commitb5642384c47ddb33187868e1d4cfc002797b2111 (patch)
tree47d0cfd678f49c630f529e6a184c43937f0ae63c /test/example/relooper-fuzz.c
parent9528fd93bb1317b9e22973b415b06326271dfd45 (diff)
downloadbinaryen-b5642384c47ddb33187868e1d4cfc002797b2111.tar.gz
binaryen-b5642384c47ddb33187868e1d4cfc002797b2111.tar.bz2
binaryen-b5642384c47ddb33187868e1d4cfc002797b2111.zip
add more relooper testing and improve existing
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);