summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-07 15:38:50 +0000
committerChris Lattner <sabre@nondot.org>2004-05-07 15:38:50 +0000
commit13b29f6844b93c3c8d650dfaca0527517b78a675 (patch)
tree7a19b73a8698a9981bd7d6aba5bd1c0e5685c812 /test
parent546516c3c00494b92706b23455961a35d21ebd0d (diff)
downloadllvm-13b29f6844b93c3c8d650dfaca0527517b78a675.tar.gz
llvm-13b29f6844b93c3c8d650dfaca0527517b78a675.tar.bz2
llvm-13b29f6844b93c3c8d650dfaca0527517b78a675.tar.xz
New testcase for PR336
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll b/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll
new file mode 100644
index 0000000000..6776ff185d
--- /dev/null
+++ b/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+
+%Ty = type opaque
+
+int %test(%Ty *%X) {
+ %Y = cast %Ty* %X to int*
+ %Z = load int* %Y
+ ret int %Z
+}