aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-13 19:05:15 +0000
committerChris Lattner <sabre@nondot.org>2003-11-13 19:05:15 +0000
commit623f707bee5b0ff06409a9303d687cf777a2952a (patch)
tree5e8ab7f35007ad157bab7e42c31270c3bfab312a
parenta366c98077d49d2df7e047d204a097c2c94be9c0 (diff)
Instcombine should promote this, and because it isn't, we are failing poolalloc tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9980 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll b/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll
new file mode 100644
index 0000000000..aa5b79b3a9
--- /dev/null
+++ b/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
+
+declare void %free(sbyte*)
+
+void %test(int* %X) {
+ call int (...)* cast (void (sbyte*)* %free to int (...)*)(int * %X)
+ ret void
+}
+