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