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