~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -adce -disable-output
 
2
 
 
3
define void @test() personality i32 (...)* @__gxx_personality_v0 {
 
4
        br i1 false, label %then, label %endif
 
5
 
 
6
then:           ; preds = %0
 
7
        invoke void null( i8* null )
 
8
                        to label %invoke_cont unwind label %invoke_catch
 
9
 
 
10
invoke_catch:           ; preds = %then
 
11
        %exn = landingpad {i8*, i32}
 
12
                 cleanup
 
13
        resume { i8*, i32 } %exn
 
14
 
 
15
invoke_cont:            ; preds = %then
 
16
        ret void
 
17
 
 
18
endif:          ; preds = %0
 
19
        ret void
 
20
}
 
21
 
 
22
declare i32 @__gxx_personality_v0(...)