;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. ;; RUN: wasm-opt %s -all -o %t.text.wast -g -S ;; RUN: wasm-as %s -all -g -o %t.wasm ;; RUN: wasm-dis %t.wasm -all -o %t.bin.wast ;; RUN: wasm-as %s -all -o %t.nodebug.wasm ;; RUN: wasm-dis %t.nodebug.wasm -all -o %t.bin.nodebug.wast ;; RUN: cat %t.text.wast | filecheck %s --check-prefix=CHECK-TEXT ;; RUN: cat %t.bin.wast | filecheck %s --check-prefix=CHECK-BIN ;; RUN: cat %t.bin.nodebug.wast | filecheck %s --check-prefix=CHECK-BIN-NODEBUG (module ;; CHECK-TEXT: (type $ft (func (param i32) (result i32))) ;; CHECK-BIN: (type $ft (func (param i32) (result i32))) (type $ft (func (param i32) (result i32))) ;; CHECK-TEXT: (type $ct (cont $ft)) ;; CHECK-BIN: (type $ct (cont $ft)) (type $ct (cont $ft)) ;; CHECK-TEXT: (type $2 (func (param (ref $ct)) (result (ref $ct)))) ;; CHECK-TEXT: (func $id (type $2) (param $x (ref $ct)) (result (ref $ct)) ;; CHECK-TEXT-NEXT: (local.get $x) ;; CHECK-TEXT-NEXT: ) ;; CHECK-BIN: (type $2 (func (param (ref $ct)) (result (ref $ct)))) ;; CHECK-BIN: (func $id (type $2) (param $x (ref $ct)) (result (ref $ct)) ;; CHECK-BIN-NEXT: (local.get $x) ;; CHECK-BIN-NEXT: ) (func $id (param $x (ref $ct)) (result (ref $ct)) (local.get $x) ) ) ;; CHECK-BIN-NODEBUG: (type $0 (func (param i32) (result i32))) ;; CHECK-BIN-NODEBUG: (type $1 (cont $0)) ;; CHECK-BIN-NODEBUG: (type $2 (func (param (ref $1)) (result (ref $1)))) ;; CHECK-BIN-NODEBUG: (func $0 (type $2) (param $0 (ref $1)) (result (ref $1)) ;; CHECK-BIN-NODEBUG-NEXT: (local.get $0) ;; CHECK-BIN-NODEBUG-NEXT: )