Changes in directory llvm/test/Assembler:

2007-03-18-InvalidNumberedVar.ll added (r1.1)
---
Log message:

For PR1258: http://llvm.org/PR1258 :
Test that invalid numbered value references get an error message.


---
Diffs of the changes:  (+9 -0)

 2007-03-18-InvalidNumberedVar.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/Assembler/2007-03-18-InvalidNumberedVar.ll
diff -c /dev/null llvm/test/Assembler/2007-03-18-InvalidNumberedVar.ll:1.1
*** /dev/null   Mon Mar 19 13:41:47 2007
--- llvm/test/Assembler/2007-03-18-InvalidNumberedVar.ll        Mon Mar 19 
13:41:37 2007
***************
*** 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              ; <i1>:0 [#uses=1]
+   zext i1 %0 to i32               ; <i32>:0 [#uses=1]
+   ret i32 %0                      ; Invalid Type for %0
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to