aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/insertvalue-invalid-idx.ll
diff options
context:
space:
mode:
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 0000000..86e7258
--- /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
+}