[ARM] Check that the thumb COFF segment flag gets set on thumb windows

Patch by Martin Storsjö.

llvm-svn: 276877
This commit is contained in:
Renato Golin 2016-07-27 14:37:18 +00:00
parent 246e0283d4
commit 5267d53779
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
@ RUN: | llvm-readobj -s - | FileCheck %s
.syntax unified
.thumb
.text
.global function
.thumb_func
function:
bx lr
@ CHECK: Section
@ CHECK-DAG: IMAGE_SCN_CNT_CODE
@ CHECK-DAG: IMAGE_SCN_MEM_16BIT