Add a test for LowerInvoke that doesn't use "-enable-correct-eh-support"
[oota-llvm.git] / test / Transforms / LowerInvoke / 2004-02-29-PHICrash.ll
1 ; RUN: opt < %s -lowerinvoke -enable-correct-eh-support -disable-output
2
3 define void @_ZNKSt11__use_cacheISt16__numpunct_cacheIcEEclERKSt6locale() {
4 entry:
5         br i1 false, label %then, label %UnifiedReturnBlock
6 then:           ; preds = %entry
7         invoke void @_Znwj( )
8                         to label %UnifiedReturnBlock unwind label %UnifiedReturnBlock
9 UnifiedReturnBlock:             ; preds = %then, %then, %entry
10         %UnifiedRetVal = phi i32* [ null, %entry ], [ null, %then ], [ null, %then ] ; <i32*> [#uses=0]
11         ret void
12 }
13
14 declare void @_Znwj()
15