1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

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
This commit is contained in:
Rafael Espindola 2012-11-21 14:17:23 +00:00
parent 17e363c242
commit 03adaab74d

View File

@ -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