summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll')
-rw-r--r--llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll b/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll
new file mode 100644
index 00000000000..458045a086f
--- /dev/null
+++ b/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll
@@ -0,0 +1,10 @@
+; RUN: opt < %s -adce -disable-output
+; RUN: opt < %s -adce -adce-remove-loops -disable-output
+
+define i32 @main() {
+ br label %loop
+
+loop: ; preds = %loop, %0
+ br label %loop
+}
+
OpenPOWER on IntegriCloud