llvm.org GIT mirror llvm / 811a837
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 Rafael Espindola 6 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | llvm-dis | not grep "void@"
0 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
11 ; PR2894
22 declare void @g()
33 define void @f() {
4 invoke void @g() to label %c unwind label %c
4 ; CHECK: invoke void @g()
5 ; CHECK: to label %d unwind label %c
6 invoke void @g() to label %d unwind label %c
7 d:
8 ret void
59 c:
610 %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
711 cleanup