summaryrefslogtreecommitdiff
path: root/src/wasm-shell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-shell.cpp')
-rw-r--r--src/wasm-shell.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-shell.cpp b/src/wasm-shell.cpp
index fd6adcfaf..1ebb0feeb 100644
--- a/src/wasm-shell.cpp
+++ b/src/wasm-shell.cpp
@@ -175,6 +175,10 @@ int main(int argc, char **argv) {
longjmp(trapState, 1);
});
}
+ if (!invalid) {
+ // maybe parsed ok, but otherwise incorrect
+ invalid = !wasm.validate();
+ }
assert(invalid);
} else {
// an invoke test