[llvm-commits] [llvm] r138539 - /llvm/trunk/test/Feature/exception.ll

Bill Wendling isanbard at gmail.com
Wed Aug 24 18:19:13 PDT 2011


Author: void
Date: Wed Aug 24 20:19:13 2011
New Revision: 138539

URL: http://llvm.org/viewvc/llvm-project?rev=138539&view=rev
Log:
Add feature test for the new exception handling stuff.

Added:
    llvm/trunk/test/Feature/exception.ll

Added: llvm/trunk/test/Feature/exception.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/exception.ll?rev=138539&view=auto
==============================================================================
--- llvm/trunk/test/Feature/exception.ll (added)
+++ llvm/trunk/test/Feature/exception.ll Wed Aug 24 20:19:13 2011
@@ -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
+
+ at _ZTIc = external constant i8*
+ at _ZTId = external constant i8*
+ at _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(...)





More information about the llvm-commits mailing list