blob: b00bca9be931067a44feb485a156b36361fa3fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
;; 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
|