1# REQUIRES: x86 2# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s 3# RUN: cp %t.obj %t.dupl.obj 4# RUN: not lld-link /out:%t.exe %t.obj %t.dupl.obj 2>&1 | FileCheck %s 5 6# CHECK: error: duplicate symbol: main 7# CHECK-NEXT: >>> defined at file1.cpp:2 8# CHECK-NEXT: >>> {{.*}}.obj 9# CHECK-NEXT: >>> defined at {{.*}}.obj 10 11 .cv_file 1 "file1.cpp" "EDA15C78BB573E49E685D8549286F33C" 1 12 .cv_file 2 "file2.cpp" "EDA15C78BB573E49E685D8549286F33D" 1 13 14 .section .text,"xr",one_only,main 15.globl main 16main: 17 .cv_func_id 0 18 .cv_loc 0 1 1 0 is_stmt 0 19 .cv_loc 0 1 2 0 20 retq 21.Lfunc_end0: 22 23 .section .debug$S,"dr",associative,main 24 .long 4 25 .cv_linetable 0, main, .Lfunc_end0 26 27 .section .debug$S,"dr" 28 .long 4 29 .cv_filechecksums 30 .cv_stringtable 31