Generalize target-independent folding rules for sizeof to handle more
[oota-llvm.git] / test / Transforms / Inline / crash.ll
index ebf8147c57f1d8a6d55b661ecc5606ab6bdc697a..f34b44c2aa08c1cbd9b2e42cb014864106b97d57 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -inline -argpromotion -instcombine -disable-output
+; RUN: opt < %s -inline -argpromotion -instcombine -disable-output
 
 ; This test was failing because the inliner would inline @list_DeleteElement
 ; into @list_DeleteDuplicates and then into @inf_GetBackwardPartnerLits,
@@ -51,7 +51,38 @@ entry:
   unreachable
 }
 
+declare fastcc void @list_Rplacd1284() nounwind ssp
 
 
 
-declare fastcc void @list_Rplacd1284() nounwind ssp
+
+;============================
+; PR5208
+
+define void @AAA() {
+entry:
+  %A = alloca i8, i32 undef, align 1
+  invoke fastcc void @XXX()
+          to label %invcont98 unwind label %lpad156 
+
+invcont98:                          
+  unreachable
+
+lpad156:                            
+  unreachable
+}
+
+declare fastcc void @YYY()
+
+define internal fastcc void @XXX() {
+entry:
+  %B = alloca i8, i32 undef, align 1
+  invoke fastcc void @YYY()
+          to label %bb260 unwind label %lpad
+
+bb260:                              
+  ret void
+
+lpad:                               
+  unwind
+}