summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/bss-only.ll
blob: 23f94a1a3ebdb86eb30b512c4614fdc1a2b4ffef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
OpenPOWER on IntegriCloud