Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 1 | ; RUN: echo " @G = appending global [0 x i32] zeroinitializer " | \ |
Reid Spencer | db879b6 | 2007-01-03 23:47:29 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as > %t.out2.bc |
Tanya Lattner | 5f4b355 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s > %t.out1.bc |
Eli Bendersky | 1cc814a | 2013-04-09 16:51:13 +0000 | [diff] [blame] | 4 | ; RUN: llvm-link %t.out1.bc %t.out2.bc -S | FileCheck %s |
| 5 | ; CHECK: @G = |
Chris Lattner | 98dcd12 | 2005-12-06 17:29:54 +0000 | [diff] [blame] | 6 | |
| 7 | ; When linked, the globals should be merged, and the result should still |
Reid Spencer | ce38056 | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 8 | ; be named '@G'. |
Chris Lattner | 98dcd12 | 2005-12-06 17:29:54 +0000 | [diff] [blame] | 9 | |
Tanya Lattner | 5f4b355 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 10 | @G = appending global [1 x i32] zeroinitializer ; <[1 x i32]*> [#uses=0] |
| 11 | |