2 # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
3 # RUN: not lld-link /out:%t.exe %t.obj 2>&1 | FileCheck %s
5 # CHECK: error: undefined symbol: int __cdecl foo(void)
6 # CHECK-NEXT: >>> referenced by file1.cpp:1
7 # CHECK-NEXT: >>> {{.*}}.obj:(main)
8 # CHECK-NEXT: >>> referenced by file1.cpp:2
9 # CHECK-NEXT: >>> {{.*}}.obj:(main)
11 # CHECK-NEXT: error: undefined symbol: int __cdecl bar(void)
12 # CHECK-NEXT: >>> referenced by file2.cpp:3
13 # CHECK-NEXT: >>> {{.*}}.obj:(main)
14 # CHECK-NEXT: >>> referenced by file1.cpp:4
15 # CHECK-NEXT: >>> {{.*}}.obj:(f1)
17 # CHECK-NEXT: error: undefined symbol: int __cdecl baz(void)
18 # CHECK-NEXT: >>> referenced by file1.cpp:5
19 # CHECK-NEXT: >>> {{.*}}.obj:(f2)
21 .cv_file 1 "file1.cpp" "EDA15C78BB573E49E685D8549286F33C" 1
22 .cv_file 2 "file2.cpp" "EDA15C78BB573E49E685D8549286F33D" 1
24 .section .text,"xr",one_only,main
28 .cv_loc 0 1 1 0 is_stmt 0
38 .cv_loc 1 1 4 0 is_stmt 0
42 .section .text,"xr",one_only,f2
46 .cv_loc 2 1 5 0 is_stmt 0
50 .section .debug$S,"dr",associative,main
52 .cv_linetable 0, main, .Lfunc_end0
53 .cv_linetable 1, f1, .Lfunc_end1
55 .section .debug$S,"dr",associative,f2
57 .cv_linetable 2, f2, .Lfunc_end2
59 .section .debug$S,"dr"