diff options
Diffstat (limited to 'test/lit/table-operations.wast')
-rw-r--r-- | test/lit/table-operations.wast | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/lit/table-operations.wast b/test/lit/table-operations.wast index 6e303b495..555708c07 100644 --- a/test/lit/table-operations.wast +++ b/test/lit/table-operations.wast @@ -79,6 +79,40 @@ ) ) ) + + ;; CHECK-BINARY: (func $set-get + ;; CHECK-BINARY-NEXT: (table.set $table-1 + ;; CHECK-BINARY-NEXT: (i32.const 0) + ;; CHECK-BINARY-NEXT: (ref.func $foo) + ;; CHECK-BINARY-NEXT: ) + ;; CHECK-BINARY-NEXT: (drop + ;; CHECK-BINARY-NEXT: (table.get $table-1 + ;; CHECK-BINARY-NEXT: (i32.const 0) + ;; CHECK-BINARY-NEXT: ) + ;; CHECK-BINARY-NEXT: ) + ;; CHECK-BINARY-NEXT: ) + ;; CHECK-TEXT: (func $set-get + ;; CHECK-TEXT-NEXT: (table.set $table-1 + ;; CHECK-TEXT-NEXT: (i32.const 0) + ;; CHECK-TEXT-NEXT: (ref.func $foo) + ;; CHECK-TEXT-NEXT: ) + ;; CHECK-TEXT-NEXT: (drop + ;; CHECK-TEXT-NEXT: (table.get $table-1 + ;; CHECK-TEXT-NEXT: (i32.const 0) + ;; CHECK-TEXT-NEXT: ) + ;; CHECK-TEXT-NEXT: ) + ;; CHECK-TEXT-NEXT: ) + (func $set-get + (table.set $table-1 + (i32.const 0) + (ref.func $foo) + ) + (drop + (table.get $table-1 + (i32.const 0) + ) + ) + ) ) ;; CHECK-NODEBUG: (type $none_=>_none (func)) @@ -106,3 +140,15 @@ ;; CHECK-NODEBUG-NEXT: ) ;; CHECK-NODEBUG-NEXT: ) ;; CHECK-NODEBUG-NEXT: ) + +;; CHECK-NODEBUG: (func $2 +;; CHECK-NODEBUG-NEXT: (table.set $0 +;; CHECK-NODEBUG-NEXT: (i32.const 0) +;; CHECK-NODEBUG-NEXT: (ref.func $0) +;; CHECK-NODEBUG-NEXT: ) +;; CHECK-NODEBUG-NEXT: (drop +;; CHECK-NODEBUG-NEXT: (table.get $0 +;; CHECK-NODEBUG-NEXT: (i32.const 0) +;; CHECK-NODEBUG-NEXT: ) +;; CHECK-NODEBUG-NEXT: ) +;; CHECK-NODEBUG-NEXT: ) |