summaryrefslogtreecommitdiff
path: root/test/Linker/testlink1.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-21 23:52:57 +0000
committerChris Lattner <sabre@nondot.org>2002-08-21 23:52:57 +0000
commite7e5918755821f644f46340dcac75a8f3fc4be15 (patch)
tree0d322c1fdeafb790996d6e1249dfe4edc6dd2061 /test/Linker/testlink1.ll
parent5d338349e300494cdb791a0a4e876c465184df7e (diff)
downloadllvm-e7e5918755821f644f46340dcac75a8f3fc4be15.tar.gz
llvm-e7e5918755821f644f46340dcac75a8f3fc4be15.tar.bz2
llvm-e7e5918755821f644f46340dcac75a8f3fc4be15.tar.xz
Fix testcase to not use indexing in non-gep instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/testlink1.ll')
-rw-r--r--test/Linker/testlink1.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Linker/testlink1.ll b/test/Linker/testlink1.ll
index dd89d8b696..35b6eeb6f6 100644
--- a/test/Linker/testlink1.ll
+++ b/test/Linker/testlink1.ll
@@ -25,7 +25,8 @@ begin
%v1 = load int* %MyVar
call void %print(int %v1) ;; Should start out 4
- %v2 = load { \2 *, int }* %MyIntList, uint 0, ubyte 1
+ %idx = getelementptr { \2 *, int }* %MyIntList, uint 0, ubyte 1
+ %v2 = load int* %idx
call void %print(int %v2) ;; Should start out 17
call int %foo(int 5) ;; Modify global variablesx
@@ -33,7 +34,7 @@ begin
%v3 = load int* %MyVar
call void %print(int %v3) ;; Should now be 5
- %v4 = load { \2 *, int }* %MyIntList, uint 0, ubyte 1
+ %v4 = load int* %idx
call void %print(int %v4) ;; Should start out 12
ret void