aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-23 15:57:45 +0000
committerChris Lattner <sabre@nondot.org>2003-10-23 15:57:45 +0000
commit0655845a4a7ab19470c39d256f300f5b34492b9a (patch)
tree2a0a71171c16951d58307f52148a0184cb43aa2e /test
parentde08597fe636ca31bfd535124a9cff4d2563d568 (diff)
fix test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/LowerSetJmp/simpletest.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Transforms/LowerSetJmp/simpletest.ll b/test/Transforms/LowerSetJmp/simpletest.ll
index f7bef72b66..94a607a23e 100644
--- a/test/Transforms/LowerSetJmp/simpletest.ll
+++ b/test/Transforms/LowerSetJmp/simpletest.ll
@@ -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: