
%MyVar     = uninitialized global int
%MyIntList = uninitialized global { \2 *, int }
             uninitialized global int      ; int*:0

%AConst    = constant int 123

%AString   = constant [4 x ubyte] c"test"

implementation

int "foo"(int %blah)
begin
	store int 5, int *%MyVar
	%idx = getelementptr { \2 *, int } * %MyIntList, uint 0, ubyte 1
  	store int 12, int* %idx
  	ret int %blah
end



%MyVar     = uninitialized global int
%MyIntList = uninitialized global { \2 *, int }
             external global int      ; int*:0

%AConst    = constant int 123

%AString   = constant [4 x ubyte] c"test"

implementation

int "foo"(int %blah)
begin
	store int 5, int *%MyVar
	%idx = getelementptr { \2 *, int } * %MyIntList, long 0, ubyte 1
  	store int 12, int* %idx
  	ret int %blah
end


Test "external" modifier on global variable Fix getelementptr instruction to use long isntead of uint index
Test "external" modifier on global variable
Fix getelementptr instruction to use long isntead of uint index


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@4047 91177308-0d34-0410-b5e6-96231b3b80d8
