blob: eec8f637be0d4522a2908b6117d09f58d7e478ba [file] [log] [blame]
Chris Lattner76591ca2006-06-16 01:20:58 +00001; The linker should choose the largest alignment when linking.
2
Chandler Carruth4177e6f2012-07-02 12:47:22 +00003; RUN: echo "@X = global i32 7, align 8" | llvm-as > %t.2.bc
Reid Spenceredca80b2007-04-15 18:11:57 +00004; RUN: llvm-as < %s > %t.1.bc
Chandler Carruth4177e6f2012-07-02 12:47:22 +00005; RUN: llvm-link %t.1.bc %t.2.bc -S | grep "align 8"
Chris Lattner76591ca2006-06-16 01:20:58 +00006
Reid Spenceredca80b2007-04-15 18:11:57 +00007@X = weak global i32 7, align 4