xref: /llvm-project/llvm/test/Linker/null_mapping_constant.ll (revision f2e868c566107eb2f54e3e6033199297ba11e2d9)
1; RUN: llvm-link %s -S -o - | FileCheck %s
2; Check that the constant is not linked and the metadata is correctly referencing a nullptr
3; CHECK: !0 = !{!"foo", null, i64 16}
4
5
6
7target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
8target triple = "x86_64-apple-macosx10.12.0"
9@foo = external unnamed_addr constant { [4 x ptr], [32 x i8] }, align 32
10!llvm.bitsets = !{!0}
11!0 = !{!"foo", ptr getelementptr inbounds ({ [4 x ptr], [32 x i8] }, ptr @foo, i32 0, i32 0), i64 16}
12