Chris Lattner | 76591ca | 2006-06-16 01:20:58 +0000 | [diff] [blame] | 1 | ; The linker should choose the largest alignment when linking. |
| 2 | |
Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 3 | ; RUN: echo {@X = global i32 7, align 8} | llvm-as > %t.2.bc |
| 4 | ; RUN: llvm-as < %s > %t.1.bc |
Dan Gohman | 5efe566 | 2009-09-15 15:38:31 +0000 | [diff] [blame] | 5 | ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {align 8} |
Chris Lattner | 76591ca | 2006-06-16 01:20:58 +0000 | [diff] [blame] | 6 | |
Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 7 | @X = weak global i32 7, align 4 |