1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
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-07 00:08:26 +01:00
2002-04-18 22:30:58 +02:00
; Test that self referential instructions are not allowed
2008-03-01 10:00:21 +01:00
define void @test() {
%A = add i32 %A, 0 ; <i32> [#uses=1]
2002-04-18 22:30:58 +02:00
ret void
2008-03-01 10:00:21 +01:00
}