llvm-project
23 строки · 661.0 Байт
1; REQUIRES: x86
2; RUN: opt -module-summary %s -o %t1.o
3; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o
4
5; RUN: rm -f %t1.o.4.opt.bc
6; RUN: lld-link /lto-sample-profile:%p/Inputs/lto-sample-profile.prof /lldsavetemps /entry:f /subsystem:console %t1.o %t2.o /out:%t3.exe
7; RUN: opt -S %t1.o.4.opt.bc | FileCheck %s
8
9target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10target triple = "x86_64-pc-windows-msvc19.0.24215"
11
12; CHECK: ![[#]] = !{i32 1, !"ProfileSummary", ![[#]]}
13declare void @g(...)
14
15define void @h() {
16ret void
17}
18define void @f() {
19entry:
20call void (...) @g()
21call void (...) @h()
22ret void
23}
24