2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/comdat.s -o %t2.o -filetype=obj
4 ; RUN: ld.lld %t.o %t2.o -o %t.so -shared
5 ; RUN: llvm-readobj -t %t.so | FileCheck %s
6 ; RUN: ld.lld %t2.o %t.o -o %t2.so -shared
7 ; RUN: llvm-readobj -t %t2.so | FileCheck %s --check-prefix=OTHER
10 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-unknown-linux-gnu"
15 define protected void @foo() comdat($c) {
21 ; CHECK-NEXT: Value: 0x1000
23 ; CHECK-NEXT: Binding: Global
24 ; CHECK-NEXT: Type: Function
26 ; CHECK-NEXT: STV_PROTECTED
28 ; CHECK-NEXT: Section: .text
33 ; OTHER-NEXT: Value: 0x1000
35 ; OTHER-NEXT: Binding: Global
36 ; OTHER-NEXT: Type: None
38 ; OTHER-NEXT: STV_PROTECTED
40 ; OTHER-NEXT: Section: .text