diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:26:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:26:48 +0000 |
commit | f406d28693d0e02718e20c2ccd4c6067be5d19ce (patch) | |
tree | 6a6065e8229eb172c629e8c4c717ba07281d829c /test/Linker | |
parent | 3b1778bccf5779bfc121349f82b91f215b856bb4 (diff) | |
download | llvm-f406d28693d0e02718e20c2ccd4c6067be5d19ce.tar.gz llvm-f406d28693d0e02718e20c2ccd4c6067be5d19ce.tar.bz2 llvm-f406d28693d0e02718e20c2ccd4c6067be5d19ce.tar.xz |
TEstcases for old bugs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker')
-rw-r--r-- | test/Linker/2002-07-17-GlobalFail.ll | 8 | ||||
-rw-r--r-- | test/Linker/2002-07-17-LinkTest2.ll | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/Linker/2002-07-17-GlobalFail.ll b/test/Linker/2002-07-17-GlobalFail.ll new file mode 100644 index 0000000000..bc12fe9f42 --- /dev/null +++ b/test/Linker/2002-07-17-GlobalFail.ll @@ -0,0 +1,8 @@ +; RUN: as < %s > Output/%s.bc +; RUN: echo | as > Output/%s.tmp.bc +; RUN: link Output/%s.tmp.bc Output/%s.bc + +%X = constant int 5 +%Y = internal global [2 x int*] [ int* %X, int * %X] + + diff --git a/test/Linker/2002-07-17-LinkTest2.ll b/test/Linker/2002-07-17-LinkTest2.ll new file mode 100644 index 0000000000..322f38034f --- /dev/null +++ b/test/Linker/2002-07-17-LinkTest2.ll @@ -0,0 +1,10 @@ +; This fails linking when it is linked with an empty file as the first object file + +; RUN: touch Output/LinkTest1.ll +; RUN: as Output/LinkTest1.ll +; RUN: as < %s > Output/LinkTest2.bc +; RUN: link Output/LinkTest[12].bc + +%work = global int (int, int)* %zip + +declare int %zip(int, int) |