blob: 4435f2de08a87e832539e222157c95f75ddc65f0 [file] [log] [blame]
Chris Lattner5e4f2992004-10-05 02:16:01 +00001; Test that appending linkage works correctly when arrays are the same size.
2
Reid Spenceredca80b2007-04-15 18:11:57 +00003; RUN: echo {%X = external constant \[1 x int\] } | \
4; RUN: llvm-upgrade | llvm-as > %t.2.bc
Reid Spencerae8e54a2006-12-02 20:40:30 +00005; RUN: llvm-upgrade %s | llvm-as > %t.1.bc
Reid Spenceredca80b2007-04-15 18:11:57 +00006; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep constant
Chris Lattner5e4f2992004-10-05 02:16:01 +00007
8%X = uninitialized global [1 x int]