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