1 # REQUIRES: aarch64, x86
2 # RUN: split-file %s %t.dir && cd %t.dir
4 # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o test-x86_64.obj test-x86_64.s
5 # RUN: llvm-mc -triple=aarch64-windows-msvc -filetype=obj -o test-aarch64.obj test-aarch64.s
6 # RUN: llvm-mc -triple=arm64ec-windows-msvc -filetype=obj -o test-arm64ec.obj test-aarch64.s
8 # RUN: not lld-link -out:test-x86_64.exe test-x86_64.obj 2>&1 | FileCheck %s
9 # RUN: not lld-link -out:test-aarch64.exe test-aarch64.obj 2>&1 | FileCheck %s
10 # RUN: not lld-link -out:test-arm64ec.exe -machine:arm64ec test-arm64ec.obj 2>&1 | FileCheck %s
11 # RUN: not lld-link -out:test-arm64ec2.exe -machine:arm64ec test-x86_64.obj 2>&1 | FileCheck %s
13 # CHECK: error: undefined symbol: int __cdecl foo(void)
14 # CHECK-NEXT: >>> referenced by file1.cpp:1
15 # CHECK-NEXT: >>> {{.*}}.obj:(main)
16 # CHECK-NEXT: >>> referenced by file1.cpp:2
17 # CHECK-NEXT: >>> {{.*}}.obj:(main)
19 # CHECK-NEXT: error: undefined symbol: int __cdecl bar(void)
20 # CHECK-NEXT: >>> referenced by file2.cpp:3
21 # CHECK-NEXT: >>> {{.*}}.obj:(main)
22 # CHECK-NEXT: >>> referenced by file1.cpp:4
23 # CHECK-NEXT: >>> {{.*}}.obj:(f1)
25 # CHECK-NEXT: error: undefined symbol: int __cdecl baz(void)
26 # CHECK-NEXT: >>> referenced by file1.cpp:5
27 # CHECK-NEXT: >>> {{.*}}.obj:(f2)
30 .cv_file 1 "file1.cpp" "EDA15C78BB573E49E685D8549286F33C" 1
31 .cv_file 2 "file2.cpp" "EDA15C78BB573E49E685D8549286F33D" 1
33 .section .text,"xr",one_only,main
37 .cv_loc 0 1 1 0 is_stmt 0
47 .cv_loc 1 1 4 0 is_stmt 0
51 .section .text,"xr",one_only,f2
55 .cv_loc 2 1 5 0 is_stmt 0
59 .section .debug$S,"dr",associative,main
61 .cv_linetable 0, main, .Lfunc_end0
62 .cv_linetable 1, f1, .Lfunc_end1
64 .section .debug$S,"dr",associative,f2
66 .cv_linetable 2, f2, .Lfunc_end2
68 .section .debug$S,"dr"
74 .cv_file 1 "file1.cpp" "EDA15C78BB573E49E685D8549286F33C" 1
75 .cv_file 2 "file2.cpp" "EDA15C78BB573E49E685D8549286F33D" 1
77 .section .text,"xr",one_only,main
81 .cv_loc 0 1 1 0 is_stmt 0
91 .cv_loc 1 1 4 0 is_stmt 0
95 .section .text,"xr",one_only,f2
99 .cv_loc 2 1 5 0 is_stmt 0
103 .section .debug$S,"dr",associative,main
105 .cv_linetable 0, main, .Lfunc_end0
106 .cv_linetable 1, f1, .Lfunc_end1
108 .section .debug$S,"dr",associative,f2
110 .cv_linetable 2, f2, .Lfunc_end2
112 .section .debug$S,"dr"