1; REQUIRES: x86-registered-target 2; Test that mixing bitcode file with opaque and typed pointers works. 3 4; RUN: mkdir -p %t 5; RUN: opt -module-summary -o %t/typed.bc %s 6; RUN: opt -module-summary -o %t/opaque.bc %S/Inputs/thinlto-opaque.ll 7; 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,p 10 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.bc 14 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 0 23} 24