tests/cli/invalid-funcref-in-data-segment.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | (assert_invalid |
| 4 | (module |
| 5 | (memory 0) |
| 6 | (func $f) |
| 7 | (elem declare func $f) |
| 8 | (data (ref.func $f) "")) |
| 9 | "type mismatch") |
| 10 | |
| 11 | (assert_invalid |
| 12 | (module |
| 13 | (memory 0) |
| 14 | (func $f) |
| 15 | (data (ref.func $f) "")) |
| 16 | "undeclared function reference") |