2002-08-21 03:29:20 +08:00
|
|
|
; This fails linking when it is linked with an empty file as the first object file
|
|
|
|
|
2003-09-16 04:04:28 +08:00
|
|
|
; RUN: llvm-as > %t.LinkTest.bc < /dev/null
|
|
|
|
; RUN: llvm-as < %s > %t.bc
|
|
|
|
; RUN: llvm-link %t.LinkTest.bc %t.bc
|
2002-08-21 03:29:20 +08:00
|
|
|
|
|
|
|
%work = global int 4
|
2003-01-24 03:52:48 +08:00
|
|
|
%test = global int* getelementptr( int* %work, long 1)
|
2002-08-21 03:29:20 +08:00
|
|
|
|