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