diff options
author | Ben Smith <binjimin@gmail.com> | 2016-12-20 11:25:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 11:25:06 -0800 |
commit | 1d9e26d68c95c26066ebb75328ca0dd95d4d536b (patch) | |
tree | fc222ae415e0123c54e0afea84da00506b38b093 /test/parse/module/bad-table-invalid-function.txt | |
parent | 050712d06ece5ef934f820a32dad2c75a6320815 (diff) | |
download | wabt-1d9e26d68c95c26066ebb75328ca0dd95d4d536b.tar.gz wabt-1d9e26d68c95c26066ebb75328ca0dd95d4d536b.tar.bz2 wabt-1d9e26d68c95c26066ebb75328ca0dd95d4d536b.zip |
Validate function vars in elem segments (#250)
They must reference a valid function.
Diffstat (limited to 'test/parse/module/bad-table-invalid-function.txt')
-rw-r--r-- | test/parse/module/bad-table-invalid-function.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/parse/module/bad-table-invalid-function.txt b/test/parse/module/bad-table-invalid-function.txt new file mode 100644 index 00000000..6269a381 --- /dev/null +++ b/test/parse/module/bad-table-invalid-function.txt @@ -0,0 +1,10 @@ +;;; ERROR: 1 +(module + (table 1 anyfunc) + (func $f) + (elem (i32.const 0) $f 1)) +(;; STDERR ;;; +parse/module/bad-table-invalid-function.txt:5:26: function variable out of range (max 1) + (elem (i32.const 0) $f 1)) + ^ +;;; STDERR ;;) |