summaryrefslogtreecommitdiffstats
path: root/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll')
-rw-r--r--test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll b/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
new file mode 100644
index 0000000..bcc73fd
--- /dev/null
+++ b/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
@@ -0,0 +1,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
+ ]
+}