diff options
Diffstat (limited to 'lld/test/wasm/bss-only.ll')
-rw-r--r-- | lld/test/wasm/bss-only.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lld/test/wasm/bss-only.ll b/lld/test/wasm/bss-only.ll new file mode 100644 index 00000000000..23f94a1a3eb --- /dev/null +++ b/lld/test/wasm/bss-only.ll @@ -0,0 +1,14 @@ +; RUN: llc -filetype=obj %s -o %t.o +; RUN: wasm-ld -no-gc-sections --no-entry %t.o -o %t.wasm +; RUN: obj2yaml %t.wasm | FileCheck %s + +; Test that the data section is skipped entirely when there are only +; bss segments + +target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" +target triple = "wasm32-unknown-unknown" + +@a = global [1000 x i8] zeroinitializer, align 1 +@b = global i32 0 + +; CHECK-NOT: - Type: DATA |