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