summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/globalvars.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-06 22:32:38 +0000
committerChris Lattner <sabre@nondot.org>2002-10-06 22:32:38 +0000
commitee67e9ae516ba5d4a1f90962801068e853eaac88 (patch)
tree3e6dcdbb0e86e182c29d096055c7baf580caa674 /llvm/test/Feature/globalvars.ll
parent9e31c7ea8a214386f0336b84d64cbaff0f88a9c0 (diff)
downloadbcm5719-llvm-ee67e9ae516ba5d4a1f90962801068e853eaac88.tar.gz
bcm5719-llvm-ee67e9ae516ba5d4a1f90962801068e853eaac88.zip
Test "external" modifier on global variable
Fix getelementptr instruction to use long isntead of uint index llvm-svn: 4047
Diffstat (limited to 'llvm/test/Feature/globalvars.ll')
-rw-r--r--llvm/test/Feature/globalvars.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Feature/globalvars.ll b/llvm/test/Feature/globalvars.ll
index a01c20b234d..674341d64b2 100644
--- a/llvm/test/Feature/globalvars.ll
+++ b/llvm/test/Feature/globalvars.ll
@@ -1,7 +1,7 @@
%MyVar = uninitialized global int
%MyIntList = uninitialized global { \2 *, int }
- uninitialized global int ; int*:0
+ external global int ; int*:0
%AConst = constant int 123
@@ -12,7 +12,7 @@ implementation
int "foo"(int %blah)
begin
store int 5, int *%MyVar
- %idx = getelementptr { \2 *, int } * %MyIntList, uint 0, ubyte 1
+ %idx = getelementptr { \2 *, int } * %MyIntList, long 0, ubyte 1
store int 12, int* %idx
ret int %blah
end
OpenPOWER on IntegriCloud