AsmParser: Call instructions can't have an alignment
[oota-llvm.git] / test / Assembler / call-invalid-1.ll
diff --git a/test/Assembler/call-invalid-1.ll b/test/Assembler/call-invalid-1.ll
new file mode 100644 (file)
index 0000000..4a12b14
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+declare void @f()
+
+define void @g() {
+  call void @f() align 8
+; CHECK: error: call instructions may not have an alignment
+  ret void
+}