Files
clang-p2996/lld/test/wasm/Inputs/undefined-globals.s
Sam Clegg 04febd30a8 [lld][WebAssembly] Error on import/export of mutable global without mutable-globals feature
Also add the +mutable-globals features in clang when
building with `-fPIC` since the linker will generate mutable
globals imports and exports in that case.

Differential Revision: https://reviews.llvm.org/D87537
2020-09-12 14:28:14 -07:00

12 lines
277 B
ArmAsm

.globl use_undef_global
.globl unused_undef_global
.globl used_undef_global
use_undef_global:
.functype use_undef_global () -> (i64)
global.get used_undef_global
end_function
.globaltype unused_undef_global, i64, immutable
.globaltype used_undef_global, i64, immutable