aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-10-14 23:13:45 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-10-14 23:13:45 +0000
commitb40acbe8c2633fc12c4c50204ff3340baadf772e (patch)
treec11003df33358c26d8d635c22918dd951a5cb3cb /test
parent137b62ccc81caefb671fca46904fc4ef109ab787 (diff)
downloadexternal_llvm-b40acbe8c2633fc12c4c50204ff3340baadf772e.zip
external_llvm-b40acbe8c2633fc12c4c50204ff3340baadf772e.tar.gz
external_llvm-b40acbe8c2633fc12c4c50204ff3340baadf772e.tar.bz2
Added a string global variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Feature/globalvars.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Feature/globalvars.ll b/test/Feature/globalvars.ll
index b189dfc..3914efc 100644
--- a/test/Feature/globalvars.ll
+++ b/test/Feature/globalvars.ll
@@ -5,12 +5,14 @@
%AConst = constant int 123
+%AString = constant [4 x ubyte] c"test"
+
implementation
int "foo"(int %blah)
begin
store int 5, int *%MyVar
- store int 12, { \2 *, int } * %MyIntList, ubyte 1
- ret int %blah
+ store int 12, { \2 *, int } * %MyIntList, ubyte 1
+ ret int %blah
end