summaryrefslogtreecommitdiffstats
path: root/test/Verifier
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-01 09:00:21 +0000
committerChris Lattner <sabre@nondot.org>2008-03-01 09:00:21 +0000
commitad23d43f1895522b1b6a000fdf46bb118dd3a93e (patch)
tree0d3cb6abb55cd09b94fc072b8ba37d356c2281fd /test/Verifier
parentb822e70f368b232c32c34d5ae93377aaa824becc (diff)
downloadexternal_llvm-ad23d43f1895522b1b6a000fdf46bb118dd3a93e.zip
external_llvm-ad23d43f1895522b1b6a000fdf46bb118dd3a93e.tar.gz
external_llvm-ad23d43f1895522b1b6a000fdf46bb118dd3a93e.tar.bz2
Fix this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/SelfReferential.ll12
1 files changed, 5 insertions, 7 deletions
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 ; <i32> [#uses=1]
ret void
-end
+}
+