diff options
author | Ben Smith <binjimin@gmail.com> | 2016-06-24 13:46:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 13:46:22 -0700 |
commit | 35600ece919c127db39e625be103a149746fb7b1 (patch) | |
tree | 7d981fbc79fd5a7aaf26bebcd0c393892593f9d2 /test/parse/expr/bad-getlocal-name.txt | |
parent | bb66db55c1767cb0cded918ef530f38aa956ffe9 (diff) | |
download | wabt-35600ece919c127db39e625be103a149746fb7b1.tar.gz wabt-35600ece919c127db39e625be103a149746fb7b1.tar.bz2 wabt-35600ece919c127db39e625be103a149746fb7b1.zip |
Update testsuite, and fix tests (#90)
* Modify AST parser to disallow any other order than `param`, `result`,
`local`.
* Allow parsing all var integers as int64 (the lookups will fail later.)
* Fix interpreter logic determining whether to adjust the stack; we were
correctly handling the case where `unreachable` was being used in an
expression (the value stack is adjusted "up" as if a value was
actually produced), but the same behavior is required for `br`,
`br_table` and `return`.
* Add NAT token to lexer/parser, which is an integer value without a
sign.
Diffstat (limited to 'test/parse/expr/bad-getlocal-name.txt')
-rw-r--r-- | test/parse/expr/bad-getlocal-name.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parse/expr/bad-getlocal-name.txt b/test/parse/expr/bad-getlocal-name.txt index 50573a30..89af7f3e 100644 --- a/test/parse/expr/bad-getlocal-name.txt +++ b/test/parse/expr/bad-getlocal-name.txt @@ -4,7 +4,7 @@ parse/expr/bad-getlocal-name.txt:2:41: unexpected token "f" (module (func (local $f f32) (get_local f))) ^ -parse/expr/bad-getlocal-name.txt:2:42: syntax error, unexpected ), expecting INT or VAR +parse/expr/bad-getlocal-name.txt:2:42: syntax error, unexpected ), expecting NAT or VAR (module (func (local $f f32) (get_local f))) ^ ;;; STDERR ;;) |