llvm-6502/test/Linker/link-type-names.ll
Chris Lattner ea93373a0a Now that PR11464 is fixed, reapply the patch to fix PR11464,
merging types by name when we can.  We still don't guarantee type name linkage
but we do it when obviously the right thing to do.  This makes LTO type names 
easier to read, for example.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146932 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-20 00:12:26 +00:00

11 lines
235 B
LLVM

; RUN: echo "%X = type { i32 } @G2 = global %X { i32 4 }" > %t.ll
; RUN: llvm-link %s %t.ll -S | FileCheck %s
; PR11464
%X = type { i32 }
@G = global %X { i32 4 }
; CHECK: @G = global %X { i32 4 }
; CHECK: @G2 = global %X { i32 4 }