1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/Feature/globalvars.ll
Chris Lattner f4abbab692 Test "external" modifier on global variable
Fix getelementptr instruction to use long isntead of uint index

llvm-svn: 4047
2002-10-06 22:32:38 +00:00

20 lines
393 B
LLVM

%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