2017-12-07 09:21:27 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %T/MixedCase.obj %s
|
|
|
|
# RUN: not lld-link /entry:main %T/MixedCase.obj 2>&1 | FileCheck -check-prefix=OBJECT %s
|
|
|
|
|
|
|
|
# RUN: llvm-lib /out:%T/MixedCase.lib %T/MixedCase.obj
|
|
|
|
# RUN: not lld-link /machine:x64 /entry:main %T/MixedCase.lib 2>&1 | FileCheck -check-prefix=ARCHIVE %s
|
|
|
|
|
2018-04-18 07:32:33 +08:00
|
|
|
# OBJECT: undefined symbol: f
|
|
|
|
# OBJECT-NEXT: >>> referenced by {{.*}}MixedCase.obj:(main)
|
|
|
|
# ARCHIVE: undefined symbol: f
|
|
|
|
# ARCHIVE-NEXT: >>> referenced by {{.*}}MixedCase.lib(MixedCase.obj):(main)
|
2017-12-07 09:21:27 +08:00
|
|
|
|
|
|
|
.globl main
|
|
|
|
main:
|
|
|
|
callq f
|