diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-11-21 14:17:23 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-11-21 14:17:23 +0000 |
| commit | ff571cce2f1b3afc6b839dd9a87828ff15ac5e41 (patch) | |
| tree | 319a64defd06852949e93f4b6952aeafb75ce609 | |
| parent | 8bc5421ba052f963cc8578295c80324ef0586d9c (diff) | |
| download | bcm5719-llvm-ff571cce2f1b3afc6b839dd9a87828ff15ac5e41.tar.gz bcm5719-llvm-ff571cce2f1b3afc6b839dd9a87828ff15ac5e41.zip | |
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.
llvm-svn: 168427
| -rw-r--r-- | llvm/test/Other/2008-10-15-MissingSpace.ll | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/Other/2008-10-15-MissingSpace.ll b/llvm/test/Other/2008-10-15-MissingSpace.ll index cac696ed6ff..bc78e84a0af 100644 --- a/llvm/test/Other/2008-10-15-MissingSpace.ll +++ b/llvm/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 |

