• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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; RUN: llvm-link -S -internalize %S/Inputs/linkage.b.ll %S/Inputs/linkage.c.ll %S/Inputs/linkage.d.ll | FileCheck %s -check-prefix=B -check-prefix=DI
6
7C-LABEL: @X = global i32 5
8CI-LABEL: @X = internal global i32 5
9CU-LABEL:@U = global i32 6
10CI-LABEL:@U = internal global i32 6
11CN-NOT:@U
12DI-LABEL: @Y = global i8 42
13DI-LABEL: @llvm.used = appending global [2 x i8*] [i8* @Y, i8* bitcast (i64 ()* @foo to i8*)], section "llvm.metadata"
14
15B-LABEL: define void @bar() {
16
17C-LABEL: define i32 @foo()
18CI-LABEL: define internal i32 @foo()
19
20CU-LABEL:define i32 @unused() {
21CI-LABEL:define internal i32 @unused() {
22CN-NOT:@unused()
23
24DI-LABEL: define internal i32 @foo.6()
25DI-LABEL: define i64 @foo()
26