1cee313d2SEric Christopher; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s 2cee313d2SEric Christopher; RUN: llvm-modextract -b -n 0 -o %t0 %t 3cee313d2SEric Christopher; RUN: llvm-modextract -b -n 1 -o %t1 %t 4cee313d2SEric Christopher; RUN: not llvm-modextract -b -n 2 -o - %t 2>&1 | FileCheck --check-prefix=ERROR %s 5cee313d2SEric Christopher; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=M0 %s 6cee313d2SEric Christopher; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=M1 %s 7cee313d2SEric Christopher; RUN: llvm-bcanalyzer -dump %t0 | FileCheck --check-prefix=BCA0 %s 8cee313d2SEric Christopher; RUN: llvm-bcanalyzer -dump %t1 | FileCheck --check-prefix=BCA1 %s 9cee313d2SEric Christopher 10cee313d2SEric Christopher; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 2 module(s) 11cee313d2SEric Christopher 12cee313d2SEric Christopher; BCA0: <GLOBALVAL_SUMMARY_BLOCK 13cee313d2SEric Christopher; BCA1-NOT: <GLOBALVAL_SUMMARY_BLOCK 14cee313d2SEric Christopher 15c6e5c465SHans Wennborg; M0: @g.581d7631532fa146ba4061179da39272 = external hidden global i8{{$}} 16c6e5c465SHans Wennborg; M1: @g.581d7631532fa146ba4061179da39272 = hidden global i8 42, !type !0 17cee313d2SEric Christopher@g = internal global i8 42, !type !0 18cee313d2SEric Christopher 19*9950ea66SNikita Popov; M0: define ptr @f() 20cee313d2SEric Christopher; M1-NOT: @f() 21*9950ea66SNikita Popovdefine ptr @f() { 22*9950ea66SNikita Popov ; M0: ret ptr @g.581d7631532fa146ba4061179da39272 23*9950ea66SNikita Popov ret ptr @g 24cee313d2SEric Christopher} 25cee313d2SEric Christopher 26cee313d2SEric Christopher; M1: !0 = !{i32 0, !"typeid"} 27cee313d2SEric Christopher!0 = !{i32 0, !"typeid"} 28