summaryrefslogtreecommitdiff
path: root/test/Linker/metadata-with-global-value-operand.ll
blob: fb4c01a721e7456d8fb822de5ecd66c3ecd05cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-link -S -o - %s %S/Inputs/metadata-with-global-value-operand.ll | FileCheck %s
; This test confirms that the !{null} from the second module doesn't get mapped
; onto the abandoned !{i1* @var} node from this module.

; CHECK: @var = global
@var = global i1 false

; CHECK: !named.vars = !{!0}
; CHECK: !named.null = !{!1}
!named.vars = !{!0}

; CHECK: !0 = !{i1* @var}
; CHECK: !1 = !{null}
!0 = !{i1* @var}