blob: 5672014ff663116384b6fcff7d42b554df806b18 [file] [log] [blame]
Chris Lattner730507c2002-08-20 19:29:20 +00001; This fails linking when it is linked with an empty file as the first object file
2
Misha Brukmanb6cb66f2003-09-15 20:04:28 +00003; RUN: llvm-as > %t.LinkTest.bc < /dev/null
Tanya Lattner76806b62008-03-09 08:16:40 +00004; RUN: llvm-as < %s > %t.bc
Misha Brukmanb6cb66f2003-09-15 20:04:28 +00005; RUN: llvm-link %t.LinkTest.bc %t.bc
Chris Lattner730507c2002-08-20 19:29:20 +00006
Tanya Lattner76806b62008-03-09 08:16:40 +00007@work = global i32 4 ; <i32*> [#uses=1]
8@test = global i32* getelementptr (i32* @work, i64 1) ; <i32**> [#uses=0]
Chris Lattner730507c2002-08-20 19:29:20 +00009