blob: b00bca9be931067a44feb485a156b36361fa3fec [file] [log] [blame] [edit]
;; This file checks no custom section added by --string-lowering-magic-imports if there
;; are is only valid string constants.
(module
(func $consts
(drop
(string.const "foo")
)
)
)
;; The custom section should not exist with magic imports.
;;
;; RUN: wasm-opt %s --string-lowering-magic-imports -all -S -o - \
;; RUN: | filecheck %s
;;
;; Same behavior when using magic imports with asserts enabled.
;;
;; RUN: wasm-opt %s --string-lowering-magic-imports-assert -all -S -o - \
;; RUN: | filecheck %s
;;
;; CHECK-NOT: custom section