1; RUN: llvm-as %s -o %t.bc 2; RUN: llvm-as %p/Inputs/comdat2.ll -o %t2.bc 3; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ 4; RUN: --plugin-opt=emit-llvm \ 5; RUN: -shared %t.bc %t2.bc -o %t3.bc 6; RUN: llvm-dis %t3.bc -o - | FileCheck %s 7 8target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 9 10$foo = comdat any 11@foo = global i8 0, comdat 12 13; CHECK: @foo = global i8 0, comdat 14 15; CHECK: define void @zed() { 16; CHECK: call void @bar() 17; CHECK: ret void 18; CHECK: } 19 20; CHECK: declare void @bar() 21