xref: /llvm-project/lld/test/COFF/lto-arm.ll (revision e8961969ec8906c593409748e7c24355236b3cc1)
1; REQUIRES: arm
2
3; RUN: llvm-as %s -o %t.obj
4
5; RUN: lld-link /entry:entry %t.obj /out:%t.exe /subsystem:console 2>&1 | FileCheck %s --check-prefix=ERR --allow-empty
6; RUN: llvm-readobj %t.exe | FileCheck %s
7
8; ERR-NOT: /machine is not specified
9
10; CHECK: Format: COFF-ARM{{$}}
11; CHECK: Arch: thumb
12
13target datalayout = "e-m:w-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
14target triple = "thumbv7-w64-windows-gnu"
15
16define dso_local arm_aapcs_vfpcc void @entry() {
17entry:
18  ret void
19}
20