summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll b/test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll
new file mode 100644
index 00000000000..6c5b1a57e17
--- /dev/null
+++ b/test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | opt -licm -disable-output
+
+void %test({int}* %P) {
+ br label %Loop
+
+Loop:
+ free {int}* %P
+ br label %Loop
+}
+