15 lines · plain
1; RUN: not llc -mtriple=aarch64-pc-unknown-xcoff -filetype=null %s 2>&1 | FileCheck -check-prefix=OBJFORMAT %s2; RUN: not llc -mtriple=aarch64-pc-unknown-goff -filetype=null %s 2>&1 | FileCheck -check-prefix=OBJFORMAT %s3 4; RUN: not llc -mtriple=aarch64-unknown-linux-coff -filetype=null %s 2>&1 | FileCheck -check-prefix=MCINIT %s5; CHECK: LLVM ERROR: cannot initialize MC for non-Windows COFF object files6 7; Make sure there is no crash or assert with unexpected object8; formats.9 10; OBJFORMAT: LLVM ERROR: unsupported object format11; MCINIT: LLVM ERROR: cannot initialize MC for non-Windows COFF object files12define void @foo() {13 ret void14}15