From: Chris Lattner Date: Tue, 23 Jul 2002 18:26:48 +0000 (+0000) Subject: TEstcases for old bugs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f406d28693d0e02718e20c2ccd4c6067be5d19ce;p=oota-llvm.git TEstcases for old bugs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3024 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Linker/2002-07-17-GlobalFail.ll b/test/Linker/2002-07-17-GlobalFail.ll new file mode 100644 index 00000000000..bc12fe9f42f --- /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 00000000000..322f38034fa --- /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)