25 lines · plain
1; Generate bitcode files with split LTO modules2; RUN: opt -unified-lto -thinlto-bc -thinlto-split-lto-unit -o %t0.bc %s3; RUN: llvm-dis -o %t3.ll %t0.bc4; RUN: FileCheck <%t3.ll.0 --check-prefix=M0 %s5; RUN: FileCheck <%t3.ll.1 --check-prefix=M1 %s6; RUN: llvm-bcanalyzer -dump %t0.bc | FileCheck --check-prefix=BCA0 %s7 8; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 1 module(s)9 10; BCA0: <GLOBALVAL_SUMMARY_BLOCK11; BCA0: <FULL_LTO_GLOBALVAL_SUMMARY_BLOCK12; 16 = not eligible to import13 14$g = comdat any15 16@g = global i8 42, comdat, !type !017 18; M0: define ptr @f()19define ptr @f() {20 ret ptr @g21}22 23; M1: !0 = !{i32 0, !"typeid"}24!0 = !{i32 0, !"typeid"}25