mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
testcase for the bug that required a patch to be reverted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6275413ff5
commit
a56c1c5d4c
@ -86,3 +86,34 @@ bb260:
|
||||
lpad:
|
||||
unwind
|
||||
}
|
||||
|
||||
|
||||
|
||||
;; This exposed a crash handling devirtualized calls.
|
||||
define void @f1(void ()* %f) ssp {
|
||||
entry:
|
||||
call void %f()
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @f4(i32 %size) ssp {
|
||||
entry:
|
||||
invoke void @f1(void ()* @f3)
|
||||
to label %invcont3 unwind label %lpad18
|
||||
|
||||
invcont3: ; preds = %bb1
|
||||
ret void
|
||||
|
||||
lpad18: ; preds = %invcont3, %bb1
|
||||
unreachable
|
||||
}
|
||||
|
||||
define void @f3() ssp {
|
||||
entry:
|
||||
unreachable
|
||||
}
|
||||
|
||||
declare void @f5() ssp
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user