Skip to content

Commit

Permalink
Fix testcase to not use indexing in non-gep instructions
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3439 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Aug 21, 2002
1 parent 5d33834 commit e7e5918
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Linker/testlink1.ll
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ 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

%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
Expand Down

0 comments on commit e7e5918

Please sign in to comment.