Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: echo { @G = appending global \[0 x i32\] zeroinitializer } | \ |
| 2 | ; RUN: llvm-as > %t.out2.bc |
Tanya Lattner | 003eae5 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s > %t.out1.bc |
Dan Gohman | 0682a46 | 2009-09-15 15:38:31 +0000 | [diff] [blame] | 4 | ; RUN: llvm-link %t.out1.bc %t.out2.bc -S | grep {@G =} |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 5 | |
| 6 | ; When linked, the globals should be merged, and the result should still |
| 7 | ; be named '@G'. |
| 8 | |
Tanya Lattner | 003eae5 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 9 | @G = appending global [1 x i32] zeroinitializer ; <[1 x i32]*> [#uses=0] |
| 10 | |