From 868cdb2248ebce6f20797e2fad0467a5d130ffb4 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 19 Mar 2007 18:41:37 +0000 Subject: [PATCH] For PR1258: Test that invalid numbered value references get an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35175 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Assembler/2007-03-18-InvalidNumberedVar.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Assembler/2007-03-18-InvalidNumberedVar.ll diff --git a/test/Assembler/2007-03-18-InvalidNumberedVar.ll b/test/Assembler/2007-03-18-InvalidNumberedVar.ll new file mode 100644 index 00000000000..dc060960112 --- /dev/null +++ b/test/Assembler/2007-03-18-InvalidNumberedVar.ll @@ -0,0 +1,9 @@ +; PR 1258 +; RUN: llvm-as < %s 2>&1 >/dev/null -f | grep "Numbered.*does not match" + +define i32 @test1(i32 %a, i32 %b) { +entry: + icmp eq i32 %b, %a ; :0 [#uses=1] + zext i1 %0 to i32 ; :0 [#uses=1] + ret i32 %0 ; Invalid Type for %0 +}