mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
fix test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de08597fe6
commit
0655845a4a
@ -8,12 +8,15 @@ implementation
|
||||
declare void %llvm.longjmp(%JmpBuf *%B, int %Val)
|
||||
declare int %llvm.setjmp(%JmpBuf *%B)
|
||||
|
||||
declare void %foo()
|
||||
|
||||
int %simpletest() {
|
||||
%B = alloca %JmpBuf
|
||||
%Val = call int %llvm.setjmp(%JmpBuf* %B)
|
||||
%V = cast int %Val to bool
|
||||
br bool %V, label %LongJumped, label %Normal
|
||||
Normal:
|
||||
call void %foo()
|
||||
call void %llvm.longjmp(%JmpBuf* %B, int 42)
|
||||
ret int 0 ;; not reached
|
||||
LongJumped:
|
||||
|
Loading…
x
Reference in New Issue
Block a user