xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/attribute-sections.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX
2 
3 declare i32 @foo()
4 @G0 = global i32 ()* @foo, section ".init_array"
5 
6 ; LINUX:  .section  .init_array,"aw"
7 ; LINUX:  .globl G0
8 
9 @G1 = global i32 ()* @foo, section ".fini_array"
10 
11 ; LINUX:  .section  .fini_array,"aw"
12 ; LINUX:  .globl G1
13 
14 @G2 = global i32 ()* @foo, section ".preinit_array"
15 
16 ; LINUX:  .section .preinit_array,"aw"
17 ; LINUX:  .globl G2
18 
19