brintos

brintos / llvm-project-archived public Read only

0
0
Text · 596 B · 9fe9efc Raw
22 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-win32-gnu %s -o %t.obj3 4// RUN: not lld-link -lldmingw -out:%t.exe %t.obj -entry:entry -subsystem:console -wrap:foo 2>&1 | FileCheck %s5 6// Check that we error out properly with an undefined symbol, if7// __real_foo is referenced and missing, even if the -lldmingw flag is set8// (which otherwise tolerates certain cases of references to missing9// sections, to tolerate certain GCC peculiarities).10 11// CHECK: error: undefined symbol: foo12 13.global entry14entry:15  call foo16  ret17 18.global __wrap_foo19__wrap_foo:20  call __real_foo21  ret22