Chris Lattner | f406d28 | 2002-07-23 18:26:48 +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 > %t1.bc < /dev/null |
Tanya Lattner | 76806b6 | 2008-03-09 08:16:40 +0000 | [diff] [blame] | 4 | ; RUN: llvm-as < %s > %t2.bc |
Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 5 | ; RUN: llvm-link %t1.bc %t2.bc |
Chris Lattner | f406d28 | 2002-07-23 18:26:48 +0000 | [diff] [blame] | 6 | |
Tanya Lattner | 76806b6 | 2008-03-09 08:16:40 +0000 | [diff] [blame] | 7 | @work = global i32 (i32, i32)* @zip ; <i32 (i32, i32)**> [#uses=0] |
Chris Lattner | f406d28 | 2002-07-23 18:26:48 +0000 | [diff] [blame] | 8 | |
Tanya Lattner | 76806b6 | 2008-03-09 08:16:40 +0000 | [diff] [blame] | 9 | declare i32 @zip(i32, i32) |
| 10 | |