llvm-for-llvmta/test/MC/COFF/const-gv-with-rel-init.ll

12 lines
311 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -mtriple x86_64-pc-windows-msvc < %s | FileCheck %s
define void @f() {
ret void
}
@ptr = constant void ()* @f, section ".CRT$XLB", align 8
; CHECK: .section .CRT$XLB,"dr"
@weak_array = weak_odr unnamed_addr constant [1 x i8*] [i8* bitcast (void ()* @f to i8*)]
; CHECK: .section .rdata,"dr"