xref: /aosp_15_r20/external/llvm/test/MC/COFF/const-gv-with-rel-init.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -mtriple x86_64-pc-windows-msvc < %s | FileCheck %s
2
3define void @f() {
4  ret void
5}
6
7@ptr = constant void ()* @f, section ".CRT$XLB", align 8
8; CHECK:  .section  .CRT$XLB,"dr"
9
10@weak_array = weak_odr unnamed_addr constant [1 x i8*] [i8* bitcast (void ()* @f to i8*)]
11; CHECK:  .section  .rdata,"dr"
12