1 ; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck --check-prefix=CTOR %s 2 ; RUN: llc -mtriple x86_64-pc-linux -use-init-array < %s | FileCheck --check-prefix=INIT-ARRAY %s 3 @llvm.global_ctors = appending global [2 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @f }, { i32, void ()* } { i32 15, void ()* @g }] 4 5 define void @f() { 6 entry: 7 ret void 8 } 9 10 define void @g() { 11 entry: 12 ret void 13 } 14 15 ; CTOR: .section .ctors.65520,"aw",@progbits 16 ; CTOR-NEXT: .align 8 17 ; CTOR-NEXT: .quad g 18 ; CTOR-NEXT: .section .ctors,"aw",@progbits 19 ; CTOR-NEXT: .align 8 20 ; CTOR-NEXT: .quad f 21 22 ; INIT-ARRAY: .section .init_array.15,"aw",@init_array 23 ; INIT-ARRAY-NEXT: .align 8 24 ; INIT-ARRAY-NEXT: .quad g 25 ; INIT-ARRAY-NEXT: .section .init_array,"aw",@init_array 26 ; INIT-ARRAY-NEXT: .align 8 27 ; INIT-ARRAY-NEXT: .quad f 28