TEstcases for old bugs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-23 18:26:48 +00:00
parent 3b1778bccf
commit f406d28693
2 changed files with 18 additions and 0 deletions

View File

@ -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]

View File

@ -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)