2009-09-08 23:54:48 +00:00
|
|
|
; RUN: llc < %s -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX
|
2009-08-13 05:07:35 +00:00
|
|
|
|
|
|
|
declare i32 @foo()
|
|
|
|
@G0 = global i32 ()* @foo, section ".init_array"
|
|
|
|
|
2011-03-04 20:03:14 +00:00
|
|
|
; LINUX: .section .init_array,"aw"
|
2009-08-13 05:07:35 +00:00
|
|
|
; LINUX: .globl G0
|
|
|
|
|
|
|
|
@G1 = global i32 ()* @foo, section ".fini_array"
|
|
|
|
|
2011-03-04 20:03:14 +00:00
|
|
|
; LINUX: .section .fini_array,"aw"
|
2009-08-13 05:07:35 +00:00
|
|
|
; LINUX: .globl G1
|
|
|
|
|
|
|
|
@G2 = global i32 ()* @foo, section ".preinit_array"
|
|
|
|
|
2011-03-04 20:03:14 +00:00
|
|
|
; LINUX: .section .preinit_array,"aw"
|
2009-08-13 05:07:35 +00:00
|
|
|
; LINUX: .globl G2
|
|
|
|
|