ARM: add at least one real test for r242123.
authorTim Northover <tnorthover@apple.com>
Tue, 14 Jul 2015 17:23:55 +0000 (17:23 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 14 Jul 2015 17:23:55 +0000 (17:23 +0000)
The ones committed were orthogonal to the change and would have passed before
that revision. What it *did* do was prevent an assertion failure when
generating object files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242166 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/Windows/trivial-gnu-object.ll [new file with mode: 0644]

diff --git a/test/CodeGen/ARM/Windows/trivial-gnu-object.ll b/test/CodeGen/ARM/Windows/trivial-gnu-object.ll
new file mode 100644 (file)
index 0000000..a242f39
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llc -mtriple=thumbv7-windows-itanium -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s
+; RUN: llc -mtriple=thumbv7-windows-gnu -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s
+
+define void @foo() {
+; CHECK: file format COFF-ARM
+
+; CHECK-LABEL: foo:
+; CHECK: bx lr
+  ret void
+}