summaryrefslogtreecommitdiff
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
commit47dd0c343c90fdf5cf51798ded8f2c98e8e258ae (patch)
treedf58eef0615f40f1a976ef30218c5ed5be34d6d9
parentac8a58d50067bd1e1fc009cdb526d872b4cd5155 (diff)
downloadllvm-47dd0c343c90fdf5cf51798ded8f2c98e8e258ae.tar.gz
llvm-47dd0c343c90fdf5cf51798ded8f2c98e8e258ae.tar.bz2
llvm-47dd0c343c90fdf5cf51798ded8f2c98e8e258ae.tar.xz
Test "external" modifier on global variable
Fix getelementptr instruction to use long isntead of uint index git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4047 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Feature/globalvars.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Feature/globalvars.ll b/test/Feature/globalvars.ll
index a01c20b234..674341d64b 100644
--- a/test/Feature/globalvars.ll
+++ b/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