aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ADCE/2007-07-23-InfiniteLoop.ll
blob: 60e719bfd533884fadf0b4fc3c9f09902375e2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-as < %s |   opt -adce | llvm-dis | grep switch
; PR 1564
; XFAIL: *
  
define fastcc void @out() {
    start:
            br label %loop
    unreachable:
            unreachable
    loop:
            switch i32 0, label %unreachable [
                     i32 0, label %loop
            ]
}