• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s
2; RUN: llvm-modextract -b -n 0 -o %t0.bc %t
3; RUN: llvm-modextract -b -n 1 -o %t1.bc %t
4; RUN: llvm-dis -o - %t0.bc | FileCheck --check-prefix=M0 %s
5; RUN: llvm-dis -o - %t1.bc | FileCheck --check-prefix=M1 %s
6
7; M0: @default = external constant [1 x i8]
8; M0: @hidden = external hidden constant [1 x i8]
9; M0: @al = external global [1 x i8]
10
11; M1: @default = dso_local constant [1 x i8] c"0", !type !0
12; M1: @hidden = hidden constant [1 x i8] c"0", !type !0
13; M1: @al = dso_local alias [1 x i8], [1 x i8]* @default
14@default = dso_local constant [1 x i8] c"0", !type !0
15@hidden = dso_local hidden constant [1 x i8] c"0", !type !0
16
17@al = dso_local alias [1 x i8], [1 x i8]* @default
18
19define [1 x i8]* @f_default() { ret [1 x i8]* @default }
20define [1 x i8]* @f_hidden() { ret [1 x i8]* @hidden }
21define [1 x i8]* @f_al() { ret [1 x i8]* @al }
22
23!0 = !{i32 0, !"typeid"}
24