summaryrefslogtreecommitdiff
path: root/test/spec/call_indirect.txt
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-10-30 11:17:04 -0700
committerGitHub <noreply@github.com>2017-10-30 11:17:04 -0700
commitfa0f11e9f54a8c8f4d7f0a5d2cd1cf113f30f461 (patch)
treeb0ac7297f6df3998586c0e6849c65bf1341a38c4 /test/spec/call_indirect.txt
parentb230d2f7d23d1c03aa4acf5f7de11e3865bb3727 (diff)
downloadwabt-fa0f11e9f54a8c8f4d7f0a5d2cd1cf113f30f461.tar.gz
wabt-fa0f11e9f54a8c8f4d7f0a5d2cd1cf113f30f461.tar.bz2
wabt-fa0f11e9f54a8c8f4d7f0a5d2cd1cf113f30f461.zip
Better type-checking errors (#662)
Instead of printing errors on every failure, accumulate errors for each operation. If any fails, then print a message. It changes errors such as: ``` error: type mismatch in i64.store, expected i32 but got f32. error: type mismatch in i64.store, expected i64 but got i32. ``` to: ``` error: type mismatch in i64.store, expected [i32, i64] but got [f32, i32] ```
Diffstat (limited to 'test/spec/call_indirect.txt')
-rw-r--r--test/spec/call_indirect.txt26
1 files changed, 12 insertions, 14 deletions
diff --git a/test/spec/call_indirect.txt b/test/spec/call_indirect.txt
index e3796fbb..9d867bcb 100644
--- a/test/spec/call_indirect.txt
+++ b/test/spec/call_indirect.txt
@@ -5,42 +5,40 @@ out/third_party/testsuite/call_indirect.wast:237: assert_invalid passed:
error: found call_indirect operator, but no table
000001c: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:245: assert_invalid passed:
- error: type stack size too small at i32.eqz. got 0, expected at least 1
+ error: type mismatch in i32.eqz, expected [i32] but got []
0000023: error: OnConvertExpr callback failed
out/third_party/testsuite/call_indirect.wast:253: assert_invalid passed:
- error: type mismatch in i32.eqz, expected i32 but got i64.
+ error: type mismatch in i32.eqz, expected [i32] but got [i64]
0000027: error: OnConvertExpr callback failed
out/third_party/testsuite/call_indirect.wast:262: assert_invalid passed:
- error: type stack size too small at call_indirect. got 0, expected at least 1
+ error: type mismatch in call_indirect, expected [i32] but got []
0000026: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:270: assert_invalid passed:
- error: type stack size too small at call_indirect. got 0, expected at least 2
+ error: type mismatch in call_indirect, expected [f64, i32] but got []
0000027: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:278: assert_invalid passed:
- error: type stack at end of function is 1, expected 0
+ error: type mismatch in function, expected [] but got [i32]
0000025: error: EndFunctionBody callback failed
out/third_party/testsuite/call_indirect.wast:286: assert_invalid passed:
- error: type stack at end of function is 2, expected 0
+ error: type mismatch in function, expected [] but got [f64, i32]
000002e: error: EndFunctionBody callback failed
out/third_party/testsuite/call_indirect.wast:297: assert_invalid passed:
- error: type stack size too small at call_indirect. got 0, expected at least 1
+ error: type mismatch in call_indirect, expected [i32] but got []
0000027: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:305: assert_invalid passed:
- error: type mismatch in call_indirect, expected i32 but got i64.
+ error: type mismatch in call_indirect, expected [i32] but got [... i64]
0000028: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:314: assert_invalid passed:
- error: type stack size too small at call_indirect. got 1, expected at least 2
+ error: type mismatch in call_indirect, expected [i32, i32] but got [i32]
000002a: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:324: assert_invalid passed:
- error: type stack size too small at call_indirect. got 1, expected at least 2
+ error: type mismatch in call_indirect, expected [i32, i32] but got [i32]
000002a: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:334: assert_invalid passed:
- error: type mismatch in call_indirect, expected i32 but got f64.
- error: type mismatch in call_indirect, expected f64 but got i32.
+ error: type mismatch in call_indirect, expected [i32, f64] but got [f64, i32]
0000032: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:344: assert_invalid passed:
- error: type mismatch in call_indirect, expected f64 but got i32.
- error: type mismatch in call_indirect, expected i32 but got f64.
+ error: type mismatch in call_indirect, expected [f64, i32] but got [i32, f64]
0000032: error: OnCallIndirectExpr callback failed
out/third_party/testsuite/call_indirect.wast:358: assert_invalid passed:
0000021: error: invalid call_indirect signature index