Files
clang-p2996/llvm/test/ExecutionEngine/JITLink/Generic/duplicate-definition-error.test
Lang Hames e2d646226c Re-apply "[ORC] Add optional context string to duplicate symbol definition..."
This reapplies b0979b8c65, which was reverted in 370aecb957 due to bot
failures. The failures were caused by typos in the testcase that are fixed in
this patch.
2025-05-28 10:38:18 +10:00

11 lines
493 B
Plaintext

# RUN: rm -rf %t && mkdir %t
# RUN: llc -filetype=obj -o %t/main-ret-0.o %S/Inputs/main-ret-0.ll
# RUN: llc -filetype=obj -o %t/main-ret-42.o %S/Inputs/main-ret-42.ll
# RUN: not llvm-jitlink -noexec %t/main-ret-0.o %t/main-ret-42.o 2>&1 \
# RUN: | FileCheck %s
#
# Trigger a duplicate definition error by trying to link two main functions,
# check that the error message includes the file that introduced the duplicate.
#
# CHECK: In {{.*}}main-ret-42.o, duplicate definition of {{.*}}main