1 ; RUN: llvm-as --disable-verify -o %t0.bc %s
3 ; RUN: llvm-lto2 run -r %t0.bc,__imp_f,l \
5 ; RUN: -r %t0.bc,main,x \
6 ; RUN: -save-temps -o %t1 %t0.bc
7 ; RUN: llvm-dis %t1.0.0.preopt.bc -o - | FileCheck %s
8 source_filename = "test.cpp"
9 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
12 @llvm.used = appending global [2 x ptr] [ ptr @main, ptr @f ], section "llvm.metadata"
15 @g = global i8 42, comdat, !type !0
17 ; CHECK: declare protected ptr @f()
18 define protected dllimport i8* @f() {
22 define available_externally i32 @main() {
24 %2 = ptrtoint i8* %1 to i32
28 !llvm.module.flags = !{!1}
30 !0 = !{i32 0, !"typeid"}
31 !1 = !{i32 1, !"ThinLTO", i32 0}