aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/call-invalid-1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/call-invalid-1.ll')
-rw-r--r--test/Assembler/call-invalid-1.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/call-invalid-1.ll b/test/Assembler/call-invalid-1.ll
new file mode 100644
index 0000000..4a12b14
--- /dev/null
+++ b/test/Assembler/call-invalid-1.ll
@@ -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
+}