mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
fix test
llvm-svn: 9409
This commit is contained in:
parent
55bfdf9f86
commit
6bc454b691
@ -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