[llvm-commits] [llvm] r168427 - /llvm/trunk/test/Other/2008-10-15-MissingSpace.ll

Rafael Espindola rafael.espindola at gmail.com
Wed Nov 21 06:17:23 PST 2012


Author: rafael
Date: Wed Nov 21 08:17:23 2012
New Revision: 168427

URL: http://llvm.org/viewvc/llvm-project?rev=168427&view=rev
Log:
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.

Modified:
    llvm/trunk/test/Other/2008-10-15-MissingSpace.ll

Modified: llvm/trunk/test/Other/2008-10-15-MissingSpace.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2008-10-15-MissingSpace.ll?rev=168427&r1=168426&r2=168427&view=diff
==============================================================================
--- llvm/trunk/test/Other/2008-10-15-MissingSpace.ll (original)
+++ llvm/trunk/test/Other/2008-10-15-MissingSpace.ll Wed Nov 21 08:17:23 2012
@@ -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





More information about the llvm-commits mailing list