summaryrefslogtreecommitdiff
path: root/test/Linker/only-needed-used.ll
blob: 7eff3b5db6645b9614c87cb316ad65bdd0bc7770 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-link -S                           %s %p/Inputs/only-needed-used.ll | FileCheck %s
; RUN: llvm-link -S              -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s
; RUN: llvm-link -S -only-needed              %s %p/Inputs/only-needed-used.ll | FileCheck %s
; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s

; Empty destination module!


; CHECK-DAG:          @llvm.used = appending global [2 x i8*] [i8* @used1, i8* bitcast (i32* @used2 to i8*)], section "llvm.metadata"
; CHECK-DAG: @used1 = global i8 4
; CHECK-DAG: @used2 = global i32 123