diff options
author | Thomas Lively <tlively@google.com> | 2023-12-14 10:27:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 10:27:53 -0800 |
commit | bdd96e8c21d23a57a99dcca9d4d802ff471243c3 (patch) | |
tree | bca67e3db39d12835263086ac200f44a658ee3a4 /test/lit | |
parent | 7adc82b5da6ad2b36d2f335af6619601ccc8e36b (diff) | |
download | binaryen-bdd96e8c21d23a57a99dcca9d4d802ff471243c3.tar.gz binaryen-bdd96e8c21d23a57a99dcca9d4d802ff471243c3.tar.bz2 binaryen-bdd96e8c21d23a57a99dcca9d4d802ff471243c3.zip |
[Parser] Parse explicit exports (#6179)
Diffstat (limited to 'test/lit')
-rw-r--r-- | test/lit/wat-kitchen-sink.wast | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/lit/wat-kitchen-sink.wast b/test/lit/wat-kitchen-sink.wast index 98795e5ee..4368a1cb2 100644 --- a/test/lit/wat-kitchen-sink.wast +++ b/test/lit/wat-kitchen-sink.wast @@ -354,9 +354,7 @@ ;; CHECK: (tag $tag-pair (param i32 i64)) (tag $tag-pair (param i32 i64)) - ;; functions - (func) - + ;; explicit exports ;; CHECK: (export "g1" (global $g1)) ;; CHECK: (export "g1.1" (global $g1)) @@ -377,6 +375,20 @@ ;; CHECK: (export "t0.1" (tag $imported)) + ;; CHECK: (export "exported-func" (func $fimport$0)) + (export "exported-func" (func 0)) + ;; CHECK: (export "exported-table" (table $timport$0)) + (export "exported-table" (table 0)) + ;; CHECK: (export "exported-memory" (memory $mimport$0)) + (export "exported-memory" (memory 0)) + ;; CHECK: (export "exported-global" (global $g1)) + (export "exported-global" (global 0)) + ;; CHECK: (export "exported-tag" (tag $imported)) + (export "exported-tag" (tag 0)) + + ;; functions + (func) + ;; CHECK: (func $1 (type $void) ;; CHECK-NEXT: (nop) ;; CHECK-NEXT: ) |