[llvm-commits] CVS: llvm/test/Regression/Transforms/RaiseAllocations/FreeCastConstantExpr.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Dec 6 19:26:01 PST 2003
Changes in directory llvm/test/Regression/Transforms/RaiseAllocations:
FreeCastConstantExpr.ll added (r1.1)
---
Log message:
New testcase that the raiseallocations pass should be able to handle.
---
Diffs of the changes: (+10 -0)
Index: llvm/test/Regression/Transforms/RaiseAllocations/FreeCastConstantExpr.ll
diff -c /dev/null llvm/test/Regression/Transforms/RaiseAllocations/FreeCastConstantExpr.ll:1.1
*** /dev/null Sat Dec 6 19:25:46 2003
--- llvm/test/Regression/Transforms/RaiseAllocations/FreeCastConstantExpr.ll Sat Dec 6 19:25:36 2003
***************
*** 0 ****
--- 1,10 ----
+ ; This situation can occur due to the funcresolve pass.
+ ;
+ ; RUN: llvm-as < %s | opt -raiseallocs | llvm-dis | not grep call
+
+ declare void %free(sbyte*)
+
+ void %test(int *%P) {
+ call void(int*)* cast (void(sbyte*)* %free to void(int*)*)(int* %P)
+ ret void
+ }
More information about the llvm-commits
mailing list