llvm-mirror/test/Verifier/SelfReferential.ll

10 lines
224 B
LLVM
Raw Normal View History

; RUN: not llvm-as %s -o /dev/null |& grep {Only PHI nodes may reference their own value}
2004-11-06 23:08:26 +00:00
2002-04-18 20:30:58 +00:00
; Test that self referential instructions are not allowed
2008-03-01 09:00:21 +00:00
define void @test() {
%A = add i32 %A, 0 ; <i32> [#uses=1]
2002-04-18 20:30:58 +00:00
ret void
2008-03-01 09:00:21 +00:00
}