diff options
author | dim <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
commit | 7b3392326c40c3c20697816acae597ba7b3144eb (patch) | |
tree | 2cbcf22585e99f8a87d12d5ff94f392c0d266819 /test/Feature/exception.ll | |
parent | 1176aa52646fe641a4243a246aa7f960c708a274 (diff) | |
download | FreeBSD-src-7b3392326c40c3c20697816acae597ba7b3144eb.zip FreeBSD-src-7b3392326c40c3c20697816acae597ba7b3144eb.tar.gz |
Vendor import of llvm release_30 branch r142614:
http://llvm.org/svn/llvm-project/llvm/branches/release_30@142614
Diffstat (limited to 'test/Feature/exception.ll')
-rw-r--r-- | test/Feature/exception.ll | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Feature/exception.ll b/test/Feature/exception.ll new file mode 100644 index 0000000..6e18a81 --- /dev/null +++ b/test/Feature/exception.ll @@ -0,0 +1,27 @@ +; RUN: llvm-as < %s | llvm-dis > %t1.ll +; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll +; RUN: diff %t1.ll %t2.ll + +@_ZTIc = external constant i8* +@_ZTId = external constant i8* +@_ZTIPKc = external constant i8* + +define void @_Z3barv() uwtable optsize ssp { +entry: + invoke void @_Z3quxv() optsize + to label %try.cont unwind label %lpad + +try.cont: ; preds = %entry, %invoke.cont4 + ret void + +lpad: ; preds = %entry + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup + catch i8** @_ZTIc + filter [2 x i8**] [i8** @_ZTIPKc, i8** @_ZTId] + resume { i8*, i32 } %exn +} + +declare void @_Z3quxv() optsize + +declare i32 @__gxx_personality_v0(...) |