llvm-svn: 9409
This commit is contained in:
Chris Lattner 2003-10-23 15:57:45 +00:00
parent 55bfdf9f86
commit 6bc454b691

View File

@ -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: