1 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
2 ; RUN: grep {\\.mod_init_func}
3 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
4 ; RUN: grep {\\.mod_term_func}
5 ; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | \
6 ; RUN: grep {\\.section \\.ctors,"aw",.progbits}
7 ; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | \
8 ; RUN: grep {\\.section \\.dtors,"aw",.progbits}
9 ; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
10 ; RUN: grep {\\.section \\.init_array,"aw",.init_array}
11 ; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
12 ; RUN: grep {\\.section \\.fini_array,"aw",.fini_array}
14 @llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @__mf_init } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
15 @llvm.global_dtors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @__mf_fini } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
17 define void @__mf_init() {
22 define void @__mf_fini() {