Mercurial > hg > CbC > CbC_llvm
annotate lld/test/COFF/subsystem-inference-mingw.s @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
rev | line source |
---|---|
150 | 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 | |
13 foo: | |
14 ret | |
15 mainCRTStartup: | |
16 call foo | |
17 ret |