Properly constrain register classes for sub-registers.
[oota-llvm.git] / test / Linker / 2005-12-06-AppendingZeroLengthArrays.ll
1 ; RUN: echo { @G = appending global \[0 x i32\] zeroinitializer } | \
2 ; RUN:   llvm-as > %t.out2.bc
3 ; RUN: llvm-as < %s > %t.out1.bc
4 ; RUN: llvm-link %t.out1.bc %t.out2.bc -S | grep {@G =}
5
6 ; When linked, the globals should be merged, and the result should still 
7 ; be named '@G'.
8
9 @G = appending global [1 x i32] zeroinitializer         ; <[1 x i32]*> [#uses=0]
10