From b5642384c47ddb33187868e1d4cfc002797b2111 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 19 Jul 2016 20:01:35 -0700 Subject: add more relooper testing and improve existing --- test/example/relooper-fuzz.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/example/relooper-fuzz.c') 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); -- cgit v1.2.3