aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Hexagon/ctor.ll
blob: 2e2fc519118feae5bf5c9a7f3dbe9ebc00f8fea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc -march=hexagon < %s  | FileCheck -check-prefix=INITARRAY %s
; RUN: llc -march=hexagon < %s  -use-ctors | FileCheck -check-prefix=CTOR %s

@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__sub_I_P10066.ii, i8* null }]
define internal void @_GLOBAL__sub_I_P10066.ii() {
entry:
  ret void
}

;CTOR: .section	.ctors
;CTOR-NOT:  section	.init_array

;INITARRAY: section	.init_array
;INITARRAY-NOT: .section	.ctors