1 ; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
2 ; RUN: llc < %s -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=ELF
3 ; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=GNUEABI
5 ; DARWIN: .section __DATA,__mod_init_func,mod_init_funcs
6 ; DARWIN: .long _f151
7 ; DARWIN-NEXT: .long _f152
9 ; ELF: .section .ctors.65384,"aw",%progbits
10 ; ELF: .long f151
11 ; ELF: .section .ctors.65383,"aw",%progbits
12 ; ELF: .long f152
14 ; GNUEABI: .section .init_array.151,"aw",%init_array
15 ; GNUEABI: .long f151
16 ; GNUEABI: .section .init_array.152,"aw",%init_array
17 ; GNUEABI: .long f152
20 @llvm.global_ctors = appending global [2 x { i32, void ()* }] [ { i32, void ()* } { i32 151, void ()* @f151 }, { i32, void ()* } { i32 152, void ()* @f152 } ]
22 define void @f151() {
23 entry:
24 ret void
25 }
27 define void @f152() {
28 entry:
29 ret void
30 }