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 |
| 4 | ; RUN: llvm-as < %s > %t.bc |
| 5 | ; RUN: llvm-link %t.LinkTest.bc %t.bc |
Chris Lattner | 730507c | 2002-08-20 19:29:20 +0000 | [diff] [blame] | 6 | |
| 7 | %work = global int 4 |
Chris Lattner | 10806b6 | 2003-01-23 19:52:48 +0000 | [diff] [blame] | 8 | %test = global int* getelementptr( int* %work, long 1) |
Chris Lattner | 730507c | 2002-08-20 19:29:20 +0000 | [diff] [blame] | 9 | |