summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-11-21 14:17:23 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-11-21 14:17:23 +0000
commit811a8376096f710c3b49fcc4f0d69150e22207b8 (patch)
tree6ec0e3e597ed9e89209898f00847f4224a026ea0 /test/Other
parent07df765e65204203f0185a7a243e5ec3a5c4b21c (diff)
downloadllvm-811a8376096f710c3b49fcc4f0d69150e22207b8.tar.gz
llvm-811a8376096f710c3b49fcc4f0d69150e22207b8.tar.bz2
llvm-811a8376096f710c3b49fcc4f0d69150e22207b8.tar.xz
Using "not grep" is brittle as the test passes if llvm-as fails.
Fix the testcase to be valid IL and uses FileCheck. Thanks to NAKAMURA Takumi for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/2008-10-15-MissingSpace.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Other/2008-10-15-MissingSpace.ll b/test/Other/2008-10-15-MissingSpace.ll
index cac696ed6f..bc78e84a0a 100644
--- a/test/Other/2008-10-15-MissingSpace.ll
+++ b/test/Other/2008-10-15-MissingSpace.ll
@@ -1,8 +1,12 @@
-; RUN: llvm-as < %s | llvm-dis | not grep "void@"
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; PR2894
declare void @g()
define void @f() {
- invoke void @g() to label %c unwind label %c
+; CHECK: invoke void @g()
+; CHECK: to label %d unwind label %c
+ invoke void @g() to label %d unwind label %c
+d:
+ ret void
c:
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
cleanup