1*a1ca3af3SMatthew Voss; Generate bitcode files with split LTO modules 2*a1ca3af3SMatthew Voss; RUN: opt -unified-lto -thinlto-bc -thinlto-split-lto-unit -o %t0.bc %s 3*a1ca3af3SMatthew Voss; RUN: llvm-dis -o %t3.ll %t0.bc 4*a1ca3af3SMatthew Voss; RUN: FileCheck <%t3.ll.0 --check-prefix=M0 %s 5*a1ca3af3SMatthew Voss; RUN: FileCheck <%t3.ll.1 --check-prefix=M1 %s 6*a1ca3af3SMatthew Voss; RUN: llvm-bcanalyzer -dump %t0.bc | FileCheck --check-prefix=BCA0 %s 7*a1ca3af3SMatthew Voss 8*a1ca3af3SMatthew Voss; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 1 module(s) 9*a1ca3af3SMatthew Voss 10*a1ca3af3SMatthew Voss; BCA0: <GLOBALVAL_SUMMARY_BLOCK 11*a1ca3af3SMatthew Voss; BCA0: <FULL_LTO_GLOBALVAL_SUMMARY_BLOCK 12*a1ca3af3SMatthew Voss; 16 = not eligible to import 13*a1ca3af3SMatthew Voss 14*a1ca3af3SMatthew Voss$g = comdat any 15*a1ca3af3SMatthew Voss 16*a1ca3af3SMatthew Voss@g = global i8 42, comdat, !type !0 17*a1ca3af3SMatthew Voss 18*a1ca3af3SMatthew Voss; M0: define ptr @f() 19*a1ca3af3SMatthew Vossdefine ptr @f() { 20*a1ca3af3SMatthew Voss ret ptr @g 21*a1ca3af3SMatthew Voss} 22*a1ca3af3SMatthew Voss 23*a1ca3af3SMatthew Voss; M1: !0 = !{i32 0, !"typeid"} 24*a1ca3af3SMatthew Voss!0 = !{i32 0, !"typeid"} 25