aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/testlink2.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-15 03:11:58 +0000
committerChris Lattner <sabre@nondot.org>2001-10-15 03:11:58 +0000
commit230e5efe634b96aed86203a2d7097496509d4519 (patch)
tree00a582e5a5efec16bf1c56c836a9a9369d0623a5 /test/Linker/testlink2.ll
parent6bb46cdf27cc7b6da13745d7391f697739558847 (diff)
downloadexternal_llvm-230e5efe634b96aed86203a2d7097496509d4519.zip
external_llvm-230e5efe634b96aed86203a2d7097496509d4519.tar.gz
external_llvm-230e5efe634b96aed86203a2d7097496509d4519.tar.bz2
Add some more interesting test cases for the linker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/testlink2.ll')
-rw-r--r--test/Linker/testlink2.ll10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/Linker/testlink2.ll b/test/Linker/testlink2.ll
index df8d85b..77d62f2 100644
--- a/test/Linker/testlink2.ll
+++ b/test/Linker/testlink2.ll
@@ -4,6 +4,9 @@
%AConst = constant int 123
+%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
+%MyVarPtr = global { int * } { int * %MyVar }
+
constant int 412
implementation
@@ -13,10 +16,9 @@ begin
store int %blah, int *%MyVar
store int 12, { \2 *, int } * %MyIntList, ubyte 1
- ;%ack = load int * %0 ;; Load from the unnamed constant
- ;%fzo = add int %ack, %blah
- ;ret int %fzo
- ret int %blah
+ %ack = load int * %0 ;; Load from the unnamed constant
+ %fzo = add int %ack, %blah
+ ret int %fzo
end
declare void "unimp"(float, double)