1; Verify that comdat symbols can be defined in LTO objects.  We had a
2; regression where the comdat handling code was causing symbol in the lto object
3; to be ignored.
4; RUN: llvm-as %s -o %t.bc
5; RUN: llc -filetype=obj %s -o %t.o
6; RUN: wasm-ld %t.bc %t.o -o %t.wasm
7; RUN: wasm-ld %t.o %t.bc -o %t.wasm
8
9target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
10target triple = "wasm32-unknown-unknown"
11
12$foo = comdat any
13
14define void @_start() comdat($foo) {
15entry:
16  ret void
17}
18