aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll b/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll
new file mode 100644
index 0000000..13b4f91
--- /dev/null
+++ b/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -adce -disable-output
+
+int %main() {
+ br label %loop
+
+loop:
+ br label %loop
+}