From 0f0aa8f5c40af96f40edd13ed3a2f86887cae18e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 1 Mar 2008 09:00:21 +0000 Subject: Fix this test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47791 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Verifier/SelfReferential.ll | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test/Verifier') diff --git a/test/Verifier/SelfReferential.ll b/test/Verifier/SelfReferential.ll index 1f7b837..c013bfb 100644 --- a/test/Verifier/SelfReferential.ll +++ b/test/Verifier/SelfReferential.ll @@ -1,11 +1,9 @@ -; RUN: not llvm-as -f %s -o /dev/null +; RUN: not llvm-as -f %s -o /dev/null |& grep {Only PHI nodes may reference their own value} ; Test that self referential instructions are not allowed -implementation - -void "test"() -begin - %A = add int %A, 0 +define void @test() { + %A = add i32 %A, 0 ; [#uses=1] ret void -end +} + -- cgit v1.1