[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / wrap-real-missing.s
blob9fe9efcf5ef4088246dd0f323c9cd7594844d851
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 peculiarities).
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