dding test for fnstsw
[oota-llvm.git] / test / Verifier / SelfReferential.ll
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