diff options
Diffstat (limited to 'test/lit/table-operations.wast')
-rw-r--r-- | test/lit/table-operations.wast | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/lit/table-operations.wast b/test/lit/table-operations.wast index 555708c07..dece2143a 100644 --- a/test/lit/table-operations.wast +++ b/test/lit/table-operations.wast @@ -12,9 +12,13 @@ (module ;; CHECK-BINARY: (type $none_=>_none (func)) + ;; CHECK-BINARY: (type $none_=>_i32 (func (result i32))) + ;; CHECK-BINARY: (table $table-1 1 1 funcref) ;; CHECK-TEXT: (type $none_=>_none (func)) + ;; CHECK-TEXT: (type $none_=>_i32 (func (result i32))) + ;; CHECK-TEXT: (table $table-1 1 1 funcref) (table $table-1 funcref (elem $foo) @@ -113,9 +117,21 @@ ) ) ) + + ;; CHECK-BINARY: (func $get-table-size (result i32) + ;; CHECK-BINARY-NEXT: (table.size $table-1) + ;; CHECK-BINARY-NEXT: ) + ;; CHECK-TEXT: (func $get-table-size (result i32) + ;; CHECK-TEXT-NEXT: (table.size $table-1) + ;; CHECK-TEXT-NEXT: ) + (func $get-table-size (result i32) + (table.size $table-1) + ) ) ;; CHECK-NODEBUG: (type $none_=>_none (func)) +;; CHECK-NODEBUG: (type $none_=>_i32 (func (result i32))) + ;; CHECK-NODEBUG: (table $0 1 1 funcref) ;; CHECK-NODEBUG: (table $1 3 3 funcref) @@ -152,3 +168,7 @@ ;; CHECK-NODEBUG-NEXT: ) ;; CHECK-NODEBUG-NEXT: ) ;; CHECK-NODEBUG-NEXT: ) + +;; CHECK-NODEBUG: (func $3 (result i32) +;; CHECK-NODEBUG-NEXT: (table.size $0) +;; CHECK-NODEBUG-NEXT: ) |