mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-16 02:16:23 +00:00

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
12 lines
217 B
LLVM
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}
|