llvm-mirror/test/Verifier/SelfReferential.ll
Chris Lattner 2611fe98b7 Fix this test.
llvm-svn: 47791
2008-03-01 09:00:21 +00:00

10 lines
227 B
LLVM

; RUN: not llvm-as -f %s -o /dev/null |& grep {Only PHI nodes may reference their own value}
; Test that self referential instructions are not allowed
define void @test() {
%A = add i32 %A, 0 ; <i32> [#uses=1]
ret void
}