summaryrefslogtreecommitdiff
path: root/test/Assembler/insertvalue-invalid-idx.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-02-20 12:57:14 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-02-20 12:57:14 +0000
commitcf099d11218cb6f6c5cce947d6738e347f07fb12 (patch)
treed2b61ce94e654cb01a254d2195259db5f9cc3f3c /test/Assembler/insertvalue-invalid-idx.ll
parent49011b52fcba02a6051957b84705159f52fae4e4 (diff)
Notes
Diffstat (limited to 'test/Assembler/insertvalue-invalid-idx.ll')
-rw-r--r--test/Assembler/insertvalue-invalid-idx.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/insertvalue-invalid-idx.ll b/test/Assembler/insertvalue-invalid-idx.ll
new file mode 100644
index 0000000000000..86e7258cc5937
--- /dev/null
+++ b/test/Assembler/insertvalue-invalid-idx.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s |& grep {invalid indices for insertvalue}
+
+define void @test() {
+entry:
+ insertvalue [0 x i32] undef, i32 0, 0
+ ret void
+}