Home | History | Annotate | Download | only in Linker
      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 
      6 C-LABEL: @X = global i32 5
      7 CI-LABEL: @X = internal global i32 5
      8 CU-LABEL:@U = global i32 6
      9 CI-LABEL:@U = internal global i32 6
     10 CN-NOT:@U
     11 
     12 B-LABEL: define void @bar() {
     13 
     14 C-LABEL: define i32 @foo()
     15 CI-LABEL: define internal i32 @foo()
     16 
     17 CU-LABEL:define i32 @unused() {
     18 CI-LABEL:define internal i32 @unused() {
     19 CN-NOT:@unused()
     20