Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX |
Bruno Cardoso Lopes | b808588 | 2009-08-13 05:07:35 +0000 | [diff] [blame] | 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 | |