1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/Verifier/SelfReferential.ll

11 lines
243 B
LLVM
Raw Normal View History

; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
; CHECK: 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
}