1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-win32-gnu %s -o %t.obj 3 4// RUN: not lld-link -lldmingw -out:%t.exe %t.obj -entry:entry -subsystem:console -wrap:foo 2>&1 | FileCheck %s 5 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). 10 11// CHECK: error: undefined symbol: foo 12 13.global entry 14entry: 15 call foo 16 ret 17 18.global __wrap_foo 19__wrap_foo: 20 call __real_foo 21 ret 22