Chris Lattner | 730507c | 2002-08-20 19:29:20 +0000 | [diff] [blame] | 1 | ; This fails linking when it is linked with an empty file as the first object file |
| 2 | |
Misha Brukman | b6cb66f | 2003-09-15 20:04:28 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as > %t.LinkTest.bc < /dev/null |
Tanya Lattner | 76806b6 | 2008-03-09 08:16:40 +0000 | [diff] [blame] | 4 | ; RUN: llvm-as < %s > %t.bc |
Misha Brukman | b6cb66f | 2003-09-15 20:04:28 +0000 | [diff] [blame] | 5 | ; RUN: llvm-link %t.LinkTest.bc %t.bc |
Chris Lattner | 730507c | 2002-08-20 19:29:20 +0000 | [diff] [blame] | 6 | |
Tanya Lattner | 76806b6 | 2008-03-09 08:16:40 +0000 | [diff] [blame] | 7 | @work = global i32 4 ; <i32*> [#uses=1] |
| 8 | @test = global i32* getelementptr (i32* @work, i64 1) ; <i32**> [#uses=0] |
Chris Lattner | 730507c | 2002-08-20 19:29:20 +0000 | [diff] [blame] | 9 | |