brintos

brintos / llvm-project-archived public Read only

0
0
Text · 764 B · c146e1a Raw
24 lines · plain
1; REQUIRES: x86-registered-target2; Test that mixing bitcode file with opaque and typed pointers works.3 4; RUN: mkdir -p %t5; RUN: opt -module-summary -o %t/typed.bc %s6; RUN: opt -module-summary -o %t/opaque.bc %S/Inputs/thinlto-opaque.ll7; RUN: llvm-lto2 run -thinlto-distributed-indexes %t/typed.bc %t/opaque.bc \8; RUN:   -o %t/native.o -r %t/typed.bc,main,plx -r %t/typed.bc,f2, \9; RUN:   -r %t/opaque.bc,f2,p10 11; RUN: %clang_cc1 -triple x86_64-- -emit-obj -o %t/native.o %t/typed.bc \12; RUN:   -Wno-override-module \13; RUN:   -fthinlto-index=%t/typed.bc.thinlto.bc14 15target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"16target triple = "x86_64--"17 18declare ptr @f2()19 20define i32 @main() {21  call ptr @f2()22  ret i32 023}24