mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168427 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07df765e65
commit
811a837609
@ -1,8 +1,12 @@
|
|||||||
; RUN: llvm-as < %s | llvm-dis | not grep "void@"
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
||||||
; PR2894
|
; PR2894
|
||||||
declare void @g()
|
declare void @g()
|
||||||
define void @f() {
|
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:
|
c:
|
||||||
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
||||||
cleanup
|
cleanup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user