aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/COFF/const-gv-with-rel-init.ll
blob: 7d3c5f631881927af577c58aeb5d21836aaa091e (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,"rd"

@weak_array = weak_odr unnamed_addr constant [1 x i8*] [i8* bitcast (void ()* @f to i8*)]
; CHECK:  .section  .rdata,"rd",discard,weak_array