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