1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-used.ll | FileCheck %s
2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s
3 ; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-used.ll | FileCheck %s
4 ; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s
6 ; Empty destination module!
9 ; CHECK-DAG: @llvm.used = appending global [2 x ptr] [ptr @used1, ptr @used2], section "llvm.metadata"
10 ; CHECK-DAG: @used1 = global i8 4
11 ; CHECK-DAG: @used2 = global i32 123