aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
blob: dbd2b9b0196a019f107babd458b36da633ab9721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt %s -loop-deletion -S | grep switch
; PR 1564
  
define fastcc void @out() {
    start:
            br label %loop
    unreachable:
            unreachable
    loop:
            switch i32 0, label %unreachable [
                     i32 0, label %loop
            ]
}