brintos

brintos / llvm-project-archived public Read only

0
0
Text · 493 B · 42a73be Raw
11 lines · plain
1# RUN: rm -rf %t && mkdir %t2# RUN: llc -filetype=obj -o %t/main-ret-0.o %S/Inputs/main-ret-0.ll3# RUN: llc -filetype=obj -o %t/main-ret-42.o %S/Inputs/main-ret-42.ll4# RUN: not llvm-jitlink -noexec %t/main-ret-0.o %t/main-ret-42.o 2>&1 \5# RUN:    | FileCheck %s6#7# Trigger a duplicate definition error by trying to link two main functions,8# check that the error message includes the file that introduced the duplicate.9#10# CHECK: In {{.*}}main-ret-42.o, duplicate definition of {{.*}}main11