blob: b15178bda781b86c33fd29b632bd8b61efb9e4cb [file] [log] [blame]
Benoit Belleybad5f182017-08-09 20:58:39 +00001; RUN: llvm-link -S %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=NO-INTERNALIZE
2; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=INTERNALIZE
3; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=NO-INTERNALIZE
4; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=INTERNALIZE
5
6; Empty destination module!
7
8
9; CHECK-DAG: @llvm.compiler.used = appending global [2 x i8*] [i8* @used1, i8* bitcast (i32* @used2 to i8*)], section "llvm.metadata"
10; NO-INTERNALIZE-DAG: @used1 = global i8 4
11; INTERNALIZE-DAG: @used1 = internal global i8 4
12; NO-INTERNALIZE-DAG: @used2 = global i32 123
13; INTERNALIZE-DAG: @used2 = internal global i32 123