linux-packaging-mono/external/llvm/test/Linker/metadata-with-global-value-operand.ll
Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

15 lines
419 B
LLVM

; 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}