blob: b99b3a823755c2d5545f8cdbfbee1bd374dc4c40 [file] [log] [blame]
Chandler Carruth4177e6f2012-07-02 12:47:22 +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
Eli Benderskyd7170ea2013-04-09 16:51:13 +00004; RUN: llvm-link %t.out1.bc %t.out2.bc -S | FileCheck %s
5; CHECK: @G =
Chris Lattner896447532005-12-06 17:29:54 +00006
7; When linked, the globals should be merged, and the result should still
Reid Spencere3ff5ad2007-01-26 08:25:06 +00008; be named '@G'.
Chris Lattner896447532005-12-06 17:29:54 +00009
Tanya Lattnerceca1942008-03-10 07:21:50 +000010@G = appending global [1 x i32] zeroinitializer ; <[1 x i32]*> [#uses=0]
11