[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / wrap-real-missing.s
blob47b53d5d5fcf36ca6f3f44b9e4c87d48ef74b888
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-win32-gnu %s -o %t.obj
4 // RUN: not lld-link -lldmingw -out:%t.exe %t.obj -entry:entry -subsystem:console -wrap:foo 2>&1 | FileCheck %s
6 // Check that we error out properly with an undefined symbol, if
7 // __real_foo is referenced and missing, even if the -lldmingw flag is set
8 // (which otherwise tolerates certain cases of references to missing
9 // sections, to tolerate certain GCC pecularities).
11 // CHECK: error: undefined symbol: foo
13 .global entry
14 entry:
15 call foo
16 ret
18 .global __wrap_foo
19 __wrap_foo:
20 call __real_foo
21 ret