It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Linker/2005-12-06-AppendingZeroLengthArrays.ll b/test/Linker/2005-12-06-AppendingZeroLengthArrays.ll
new file mode 100644
index 0000000..3e57bec
--- /dev/null
+++ b/test/Linker/2005-12-06-AppendingZeroLengthArrays.ll
@@ -0,0 +1,9 @@
+; RUN: echo { @G = appending global \[0 x i32\] zeroinitializer } | \
+; RUN: llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | grep {@G =}
+
+; When linked, the globals should be merged, and the result should still
+; be named '@G'.
+
+%G = appending global [1 x int] zeroinitializer