1 ; RUN: llc -mtriple sparc-sun-solaris2.11 -use-ctors < %s | FileCheck --check-prefix=CTOR %s
2 ; RUN: llc -mtriple sparc-sun-solaris2.11 < %s | FileCheck --check-prefix=INIT-ARRAY %s
3 @llvm.global_ctors = appending global [2 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* null}, { i32, void ()*, i8* } { i32 15, void ()* @g, i8* @v }]
5 @v = weak_odr global i8 0
17 ; CTOR: .section .ctors.65520,#alloc,#write
18 ; CTOR-NEXT: .p2align 2
20 ; CTOR-NEXT: .section .ctors,#alloc,#write
21 ; CTOR-NEXT: .p2align 2
24 ; INIT-ARRAY: .section .init_array.15,#alloc,#write
25 ; INIT-ARRAY-NEXT: .p2align 2
26 ; INIT-ARRAY-NEXT: .word g
27 ; INIT-ARRAY-NEXT: .section .init_array,#alloc,#write
28 ; INIT-ARRAY-NEXT: .p2align 2
29 ; INIT-ARRAY-NEXT: .word f