summaryrefslogtreecommitdiff
path: root/test/Assembler/alloca-addrspace-parse-error-1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/alloca-addrspace-parse-error-1.ll')
-rw-r--r--test/Assembler/alloca-addrspace-parse-error-1.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Assembler/alloca-addrspace-parse-error-1.ll b/test/Assembler/alloca-addrspace-parse-error-1.ll
new file mode 100644
index 000000000000..5209f417da63
--- /dev/null
+++ b/test/Assembler/alloca-addrspace-parse-error-1.ll
@@ -0,0 +1,12 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+target datalayout = "A1"
+
+; addrspace and align in wrong order
+; CHECK: :8:39: error: expected metadata after comma
+define void @use_alloca() {
+ %alloca = alloca i32, addrspace(1), align 4
+ ret void
+}
+
+!0 = !{}