12 lines · plain
1; RUN: echo " @G = appending global [0 x i32] zeroinitializer " | \2; RUN: llvm-as > %t.out2.bc3; RUN: llvm-as < %s > %t.out1.bc4; RUN: llvm-link %t.out1.bc %t.out2.bc -S | FileCheck %s5; CHECK: @G =6 7; When linked, the globals should be merged, and the result should still 8; be named '@G'.9 10@G = appending global [1 x i32] zeroinitializer ; <ptr> [#uses=0]11 12