aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test
blob: 5f930adc73fd76e5c315d95b30f5745db94a5000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# RUN: opt -module-summary %p/Inputs/main-mod.ll -o %t.main-mod.bc
# RUN: opt -module-summary %p/Inputs/foo-mod.ll -o %t.foo-mod.bc
# RUN: opt -module-summary %p/Inputs/bar-mod.ll -o %t.bar-mod.bc

# REQUIRES: default_triple
# UNSUPPORTED: target=powerpc64{{.*}}

# RUN: llvm-lto -thinlto -o %t.main-foo-bar %t.main-mod.bc %t.foo-mod.bc %t.bar-mod.bc

# RUN: LLJITWithThinLTOSummaries %t.main-foo-bar.thinlto.bc 2>&1 | FileCheck %s

# CHECK: About to load module: {{.*}}main-mod.bc
# CHECK-DAG: About to load module: {{.*}}foo-mod.bc
# CHECK-DAG: About to load module: {{.*}}bar-mod.bc
# CHECK: 'main' finished with exit code: 0