diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-07 01:25:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-07 01:25:36 +0000 |
commit | 120fb19e1b394fba0fbd2ba9ddedfa8531925f11 (patch) | |
tree | 45b010a82e1af7e20c33eefdb0fcb6f480199f8f | |
parent | 67b1e1b89f221154ed6dd1ab895391789929ea2e (diff) |
New testcase that the raiseallocations pass should be able to handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10304 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/RaiseAllocations/FreeCastConstantExpr.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/RaiseAllocations/FreeCastConstantExpr.ll b/test/Transforms/RaiseAllocations/FreeCastConstantExpr.ll new file mode 100644 index 0000000000..3b700ffd45 --- /dev/null +++ b/test/Transforms/RaiseAllocations/FreeCastConstantExpr.ll @@ -0,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 +} |