git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-26 22:01:58 +00:00
parent c330ee6f02
commit cd4d41cd4f
2 changed files with 6 additions and 2 deletions

View File

@ -63,7 +63,9 @@ int %gep_distance_test2({int,int}* %A, long %distance) {
ret int %r
}
int %foo(int * %A) {
; Test that we can do funny pointer things and that distance calc will still
; work.
int %gep_distance_test3(int * %A) {
%X = load int* %A
%B = cast int* %A to sbyte*
%C = getelementptr sbyte* %B, long 4

View File

@ -63,7 +63,9 @@ int %gep_distance_test2({int,int}* %A, long %distance) {
ret int %r
}
int %foo(int * %A) {
; Test that we can do funny pointer things and that distance calc will still
; work.
int %gep_distance_test3(int * %A) {
%X = load int* %A
%B = cast int* %A to sbyte*
%C = getelementptr sbyte* %B, long 4