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