18 lines · plain
1; Verify that comdat symbols can be defined in LTO objects. We had a2; regression where the comdat handling code was causing symbol in the lto object3; to be ignored.4; RUN: llvm-as %s -o %t.bc5; RUN: llc -filetype=obj %s -o %t.o6; RUN: wasm-ld %t.bc %t.o -o %t.wasm7; RUN: wasm-ld %t.o %t.bc -o %t.wasm8 9target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"10target triple = "wasm32-unknown-unknown"11 12$foo = comdat any13 14define void @_start() comdat($foo) {15entry:16 ret void17}18