18 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: not wasm-ld %t.o -o %t.wasm 2>&1 | FileCheck %s3# RUN: wasm-ld --features=mutable-globals %t.o -o %t.wasm4 5.globaltype foo, i326 7.globl _start8_start:9 .functype _start () -> ()10 i32.const 111 global.set foo12 end_function13 14.import_module foo, env15.import_name foo, foo16 17# CHECK: error: mutable global imported but 'mutable-globals' feature not present in inputs: `foo`. Use --no-check-features to suppress.18