1; RUN: llvm-link -S %S/Inputs/linkage.b.ll %S/Inputs/linkage.c.ll | FileCheck %s -check-prefix=B -check-prefix=C -check-prefix=CU 2; RUN: llvm-link -S -only-needed %S/Inputs/linkage.b.ll %S/Inputs/linkage.c.ll | FileCheck %s -check-prefix=B -check-prefix=C -check-prefix=CN 3; RUN: llvm-link -S -internalize %S/Inputs/linkage.b.ll %S/Inputs/linkage.c.ll | FileCheck %s -check-prefix=B -check-prefix=CI 4; RUN: llvm-link -S -internalize -only-needed %S/Inputs/linkage.b.ll %S/Inputs/linkage.c.ll | FileCheck %s -check-prefix=B -check-prefix=CN 5 6C-LABEL: @X = global i32 5 7CI-LABEL: @X = internal global i32 5 8CU-LABEL:@U = global i32 6 9CI-LABEL:@U = internal global i32 6 10CN-NOT:@U 11 12B-LABEL: define void @bar() { 13 14C-LABEL: define i32 @foo() 15CI-LABEL: define internal i32 @foo() 16 17CU-LABEL:define i32 @unused() { 18CI-LABEL:define internal i32 @unused() { 19CN-NOT:@unused() 20