Home | History | Annotate | Download | only in Verifier
      1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
      2 ; CHECK: Only PHI nodes may reference their own value
      3 
      4 ; Test that self referential instructions are not allowed
      5 
      6 define void @test() {
      7 	%A = add i32 %A, 0		; <i32> [#uses=1]
      8 	ret void
      9 }
     10 
     11