aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/load.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll
index 993f7c1a3f..870c62d4ff 100644
--- a/test/Transforms/InstCombine/load.ll
+++ b/test/Transforms/InstCombine/load.ll
@@ -8,6 +8,11 @@
{ int, float } { int 37, float 1.2312 } ]
%Z = constant [2 x { int, float }] zeroinitializer
+int %test1() {
+ %B = load int* %X
+ ret int %B
+}
+
float %test2() {
%A = getelementptr [2 x { int, float}]* %Y, long 0, long 1, ubyte 1
%B = load float* %A