1# REQUIRES: x86 2# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.o 3 4# RUN: lld-link -lldmingw %t.o -out:%t.exe 5# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s 6 7# CHECK: AddressOfEntryPoint: 0x1001 8# CHECK: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3) 9 10 .text 11 .globl foo 12 .globl mainCRTStartup 13foo: 14 ret 15mainCRTStartup: 16 call foo 17 ret 18