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, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @f, ptr null}, { i32, ptr, ptr } { i32 15, ptr @g, ptr @v }]
5 @v = weak_odr global i8 0
17 ; CTOR: .section .ctors,"aw"
18 ; CTOR-NEXT: .p2align 2
20 ; CTOR-NEXT: .section .ctors.65520,"awG",@progbits,v,comdat{{$}}
21 ; CTOR-NEXT: .p2align 2
24 ; INIT-ARRAY: .section .init_array.15,"awG",@init_array,v,comdat{{$}}
25 ; INIT-ARRAY-NEXT: .p2align 2
26 ; INIT-ARRAY-NEXT: .word g
27 ; INIT-ARRAY-NEXT: .section .init_array,"aw"
28 ; INIT-ARRAY-NEXT: .p2align 2
29 ; INIT-ARRAY-NEXT: .word f