summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/lto/comdat.ll
blob: 54c9f0f3b47b60c2840b5642d634dd224061dfca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; Verify that comdat symbols can be defined in LTO objects.  We had a
; regression where the comdat handling code was causing symbol in the lto object
; to be ignored.
; RUN: llvm-as %s -o %t.bc
; RUN: llc -filetype=obj %s -o %t.o
; RUN: wasm-ld %t.bc %t.o -o %t.wasm
; RUN: wasm-ld %t.o %t.bc -o %t.wasm

target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"

$foo = comdat any

define void @_start() comdat($foo) {
entry:
  ret void
}
OpenPOWER on IntegriCloud