aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AArch64/unsupported-object-format-err.ll
blob: 0767425d1273725ed5b3f0bb9c0a0c6e68779c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: not llc -mtriple=aarch64-pc-unknown-xcoff -filetype=null %s 2>&1 | FileCheck -check-prefix=OBJFORMAT %s
; RUN: not llc -mtriple=aarch64-pc-unknown-goff -filetype=null %s 2>&1 | FileCheck -check-prefix=OBJFORMAT %s

; RUN: not llc -mtriple=aarch64-unknown-linux-coff -filetype=null %s 2>&1 | FileCheck -check-prefix=MCINIT %s
; CHECK: LLVM ERROR: cannot initialize MC for non-Windows COFF object files

; Make sure there is no crash or assert with unexpected object
; formats.

; OBJFORMAT: LLVM ERROR: unsupported object format
; MCINIT: LLVM ERROR: cannot initialize MC for non-Windows COFF object files
define void @foo() {
  ret void
}