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