aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/COFF/const-gv-with-rel-init.ll
blob: fde5a17ad515aa043d0c2a1fc82693113037678e (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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"