llvm-project/lld/test/pecoff/entry.test

10 lines
325 B
Plaintext

# REQUIRES: debug
# Verify that entry atom will not be dead-stripped.
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj
# RUN: lld -flavor link /mllvm:-debug-only=WriterPECOFF /out:%t1.exe \
# RUN: /subsystem:console /entry:main /force -- %t.obj >& %t1.log
# RUN: FileCheck -check-prefix=CHECK %s < %t1.log
CHECK: : _main