aboutsummaryrefslogtreecommitdiff
path: root/test/tools/gold/X86/drop-linkage.ll
blob: d4c1dd052c79a14dde6d5d2f22529e23b077eb36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc %s -o %t.s
; RUN: llvm-mc %t.s -o %t.o -filetype=obj
; RUN: llvm-as %p/Inputs/drop-linkage.ll -o %t2.o

; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
; RUN:    --plugin-opt=emit-llvm \
; RUN:    -shared %t.o %t2.o -o %t3.o
; RUN: llvm-dis %t3.o -o - | FileCheck %s

define void @foo() {
  ret void
}

; CHECK: declare extern_weak void @foo(){{$}}