Make sure these tests pass for the right reasons (verifier error, rather than
authorReid Spencer <rspencer@reidspencer.com>
Wed, 1 Aug 2007 23:07:36 +0000 (23:07 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 1 Aug 2007 23:07:36 +0000 (23:07 +0000)
failure to assemble).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40696 91177308-0d34-0410-b5e6-96231b3b80d8

test/Verifier/invoke-1.ll
test/Verifier/invoke-2.ll

index 362f2680993bc70f3a3aa1acfe482b37a70f43e4..dd606f09c82dd881fe3563cee8f531837876f9a1 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: not llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | not llvm-as &| grep {not verify as correct}
 ; PR1042
 
 int %foo() {
-        %A = invoke int %foo( )
-                        to label %L unwind label %L             ; <int> [#uses=1]
+   %A = invoke int %foo( )
+        to label %L unwind label %L             ; <int> [#uses=1]
 
-L:              ; preds = %0, %0
-        ret int %A
+L: ; preds = %0, %0
+   ret int %A
 }
index b3a5750fee5a2d3eb7bf603c10995f78a2dd68be..5ab038648dbd2cc2d1bb6e034d764603bad8d07a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | not llvm-as -f &| grep {not verify as correct}
 ; PR1042
 
 int %foo() {