New testcase for PR336
authorChris Lattner <sabre@nondot.org>
Fri, 7 May 2004 15:38:50 +0000 (15:38 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 May 2004 15:38:50 +0000 (15:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13401 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll b/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll
new file mode 100644 (file)
index 0000000..6776ff1
--- /dev/null
@@ -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
+}