aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/insertvalue-invalid-type.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/insertvalue-invalid-type.ll')
-rw-r--r--test/Assembler/insertvalue-invalid-type.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/insertvalue-invalid-type.ll b/test/Assembler/insertvalue-invalid-type.ll
new file mode 100644
index 0000000..6be20e5
--- /dev/null
+++ b/test/Assembler/insertvalue-invalid-type.ll
@@ -0,0 +1,9 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+; CHECK: insertvalue operand and field disagree in type: 'i8*' instead of 'i32'
+
+define void @test() {
+entry:
+ insertvalue { i32, i32 } undef, i8* null, 0
+ ret void
+}