[SPARC] Revamp AnalyzeBranch and add ReverseBranchCondition.
[oota-llvm.git] / test / Verifier / SelfReferential.ll
index 1f7b837b32f589b5a281e727ab08b1e6ce72a0a2..7f0166a158d54f2bee6937ba7c4774f889f3a02f 100644 (file)
@@ -1,11 +1,10 @@
-; RUN: not llvm-as -f %s -o /dev/null
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+; CHECK: Only PHI nodes may reference their own value
 
 ; Test that self referential instructions are not allowed
 
-implementation
-
-void "test"()
-begin
-       %A = add int %A, 0
+define void @test() {
+       %A = add i32 %A, 0              ; <i32> [#uses=1]
        ret void
-end
+}
+