blob: 7d1020ddf28ef62d04ad5388650a727876c83f92 [file] [log] [blame]
Reid Spencer6c38d942007-04-15 18:11:57 +00001; RUN: echo { @G = appending global \[0 x i32\] zeroinitializer } | \
Reid Spencerdb879b62007-01-03 23:47:29 +00002; RUN: llvm-as > %t.out2.bc
Tanya Lattner5f4b3552008-03-10 07:21:50 +00003; RUN: llvm-as < %s > %t.out1.bc
Dan Gohmanf3a9e182009-09-15 15:38:31 +00004; RUN: llvm-link %t.out1.bc %t.out2.bc -S | grep {@G =}
Chris Lattner98dcd122005-12-06 17:29:54 +00005
6; When linked, the globals should be merged, and the result should still
Reid Spencerce380562007-01-26 08:25:06 +00007; be named '@G'.
Chris Lattner98dcd122005-12-06 17:29:54 +00008
Tanya Lattner5f4b3552008-03-10 07:21:50 +00009@G = appending global [1 x i32] zeroinitializer ; <[1 x i32]*> [#uses=0]
10