summaryrefslogtreecommitdiff
path: root/test/Verifier/alloc-size-failedparse.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Verifier/alloc-size-failedparse.ll')
-rw-r--r--test/Verifier/alloc-size-failedparse.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Verifier/alloc-size-failedparse.ll b/test/Verifier/alloc-size-failedparse.ll
new file mode 100644
index 0000000000000..bda64cd796d03
--- /dev/null
+++ b/test/Verifier/alloc-size-failedparse.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+;
+; We handle allocsize with identical args in the parser, rather than the
+; verifier. So, a seperate test is needed.
+
+; CHECK: 'allocsize' indices can't refer to the same parameter
+declare i8* @a(i32, i32) allocsize(0, 0)