aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll')
-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 0000000..8e8f019
--- /dev/null
+++ b/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+
+%Ty = type opaque
+
+int %test(%Ty *%X) {
+ %Y = cast %Ty* %X to int*
+ %Z = load int* %Y
+ ret int %Z
+}