diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-10 07:58:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-10 07:58:01 +0000 |
commit | da9755002f3ab593b745dd055f4c3ff1ad66aac7 (patch) | |
tree | a778381d84adcc740d5211ce9894bdce55d40532 /llvm/test/Feature/globalvars.ll | |
parent | baf08eb2a7845d48a0945f26a3bd80098f63a116 (diff) | |
download | bcm5719-llvm-da9755002f3ab593b745dd055f4c3ff1ad66aac7.tar.gz bcm5719-llvm-da9755002f3ab593b745dd055f4c3ff1ad66aac7.zip |
Implement global variable support
llvm-svn: 530
Diffstat (limited to 'llvm/test/Feature/globalvars.ll')
-rw-r--r-- | llvm/test/Feature/globalvars.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Feature/globalvars.ll b/llvm/test/Feature/globalvars.ll new file mode 100644 index 00000000000..ef3f336c9ee --- /dev/null +++ b/llvm/test/Feature/globalvars.ll @@ -0,0 +1,14 @@ + +global %MyVar = int * +global %MyIntList = { \2 *, int } * +global int * ; int*:0 + +implementation + +int "foo"(int %blah) +begin + store int 5, int *%MyVar + store int 12, { \2 *, int } * %MyIntList, ubyte 1 + ret int %blah +end + |