blob: c24c0ebba3d1222d78d3d5b597f0a4081a1f1b8d [file] [log] [blame]
Chandler Carruth5da53432012-07-02 18:37:59 +00001; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "Only PHI nodes may reference their own value"
Tanya Lattner16b222c2004-11-06 23:08:26 +00002
Chris Lattnerd8cec982002-04-18 20:30:58 +00003; Test that self referential instructions are not allowed
4
Chris Lattner903ee682008-03-01 09:00:21 +00005define void @test() {
6 %A = add i32 %A, 0 ; <i32> [#uses=1]
Chris Lattnerd8cec982002-04-18 20:30:58 +00007 ret void
Chris Lattner903ee682008-03-01 09:00:21 +00008}
9