brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · df571b3 Raw
36 lines · plain
1; REQUIRES: x86-registered-target2; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s3; RUN: llvm-modextract -b -n 0 -o %t0 %t4; RUN: llvm-modextract -b -n 1 -o %t1 %t5; RUN: not llvm-modextract -b -n 2 -o - %t 2>&1 | FileCheck --check-prefix=ERROR %s6; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=M0 %s7; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=M1 %s8; RUN: llvm-bcanalyzer -dump %t0 | FileCheck --check-prefix=BCA0 %s9; RUN: llvm-bcanalyzer -dump %t1 | FileCheck --check-prefix=BCA1 %s10 11target triple = "x86_64-unknown-linux-gnu"12 13; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 2 module(s)14 15; BCA0: <GLOBALVAL_SUMMARY_BLOCK16; BCA1-NOT: <GLOBALVAL_SUMMARY_BLOCK17 18; M0: @g = external global ptr{{$}}19; M1: @g = global ptr @f.13757e0fb71915e385efa4dc9d1e08fd, !type !020@g = global ptr @f, !type !021 22; M0: define hidden void @f.13757e0fb71915e385efa4dc9d1e08fd()23; M1: declare hidden void @f.13757e0fb71915e385efa4dc9d1e08fd()24define internal void @f() {25  call void @f2()26  ret void27}28 29; M0: define internal void @f2()30define internal void @f2() {31  ret void32}33 34; M1: !0 = !{i32 0, !"typeid"}35!0 = !{i32 0, !"typeid"}36