[ELF] relocateNonAlloc: clean up workaround code
[llvm-project.git] / lld / test / wasm / mutable-globals.s
blobc9cd3c849e4c86b0c11295b64408141cfef9c2f2
1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: not wasm-ld %t.o -o %t.wasm 2>&1 | FileCheck %s
3 # RUN: wasm-ld --features=mutable-globals %t.o -o %t.wasm
5 .globaltype foo, i32
7 .globl _start
8 _start:
9 .functype _start () -> ()
10 i32.const 1
11 global.set foo
12 end_function
14 .import_module foo, env
15 .import_name foo, foo
17 # CHECK: error: mutable global imported but 'mutable-globals' feature not present in inputs: `foo`. Use --no-check-features to suppress.