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
|
2008-03-09 16:16:40 +08:00
|
|
|
; RUN: llvm-as < %s > %t.bc
|
2003-09-16 04:04:28 +08:00
|
|
|
; RUN: llvm-link %t.LinkTest.bc %t.bc
|
2002-08-21 03:29:20 +08:00
|
|
|
|
2008-03-09 16:16:40 +08:00
|
|
|
@work = global i32 4 ; <i32*> [#uses=1]
|
|
|
|
@test = global i32* getelementptr (i32* @work, i64 1) ; <i32**> [#uses=0]
|
2002-08-21 03:29:20 +08:00
|
|
|
|