This reappliesb0979b8c65, which was reverted in370aecb957due to bot failures. The failures were caused by typos in the testcase that are fixed in this patch.
11 lines
493 B
Plaintext
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
|