llvm-project/llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test
Filipp Zhinkin c59822cd1a [NFC][ORC] Fix lljit-with-thinlto-summaries.test output ordering issue
Use CHECK-DAG to check module names that printed in order depending
on full file path.

Related issue: https://github.com/llvm/llvm-project/issues/59248

Reviewed By: sgraenitz

Differential Revision: https://reviews.llvm.org/D138913
2022-11-29 18:15:45 +03:00

15 lines
594 B
Plaintext

# 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
# 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