llvm/test/Linker/metadata-global.ll
Evgeniy Stepanov 1565077013 Remap metadata attached to global variables.
Fix for PR32577.
Global variables may have !associated metadata, which includes a reference to another global. It needs remapping.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302203 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-04 23:29:39 +00:00

12 lines
217 B
LLVM

; RUN: llvm-link %s -S | FileCheck %s
; CHECK-DAG: @a = global i32 0
; CHECK-DAG: @b = global i32 0, !associated !0
; CHECK-DAG: !0 = !{i32* @b}
@a = global i32 0
@b = global i32 0, !associated !0
!0 = !{i32* @b}