view lld/test/COFF/subsystem-inference-mingw.s @ 213:25ca0248ac32

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Jul 2021 17:05:31 +0900
parents 1d019706d866
children
line wrap: on
line source

# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.o

# RUN: lld-link -lldmingw %t.o -out:%t.exe
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s

# CHECK: AddressOfEntryPoint: 0x1001
# CHECK: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)

        .text
        .globl foo
        .globl mainCRTStartup
foo:
        ret
mainCRTStartup:
        call foo
        ret