Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 1 | ; RUN: echo { @G = appending global \[0 x i32\] zeroinitializer } | \ |
Reid Spencer | f6dc65f | 2007-01-03 23:47:29 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as > %t.out2.bc |
Tanya Lattner | ceca194 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s > %t.out1.bc |
Dan Gohman | 5efe566 | 2009-09-15 15:38:31 +0000 | [diff] [blame] | 4 | ; RUN: llvm-link %t.out1.bc %t.out2.bc -S | grep {@G =} |
Chris Lattner | 89644753 | 2005-12-06 17:29:54 +0000 | [diff] [blame] | 5 | |
| 6 | ; When linked, the globals should be merged, and the result should still |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 7 | ; be named '@G'. |
Chris Lattner | 89644753 | 2005-12-06 17:29:54 +0000 | [diff] [blame] | 8 | |
Tanya Lattner | ceca194 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 9 | @G = appending global [1 x i32] zeroinitializer ; <[1 x i32]*> [#uses=0] |
| 10 | |