Add test for constructor and destructor sections.

llvm-svn: 32873
This commit is contained in:
Lauro Ramos Venancio 2007-01-04 14:41:33 +00:00
parent 697f86bbe3
commit 4464d208de
1 changed files with 16 additions and 0 deletions
llvm/test/Regression/CodeGen/ARM

View File

@ -0,0 +1,16 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -o %t.s -f &&
; RUN: grep '\.section \.ctors,"aw",.progbits' %t.s | grep % &&
; RUN: grep '\.section \.dtors,"aw",.progbits' %t.s | grep %
%llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %__mf_init } ] ; <[1 x { int, void ()* }]*> [#uses=0]
%llvm.global_dtors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %__mf_fini } ] ; <[1 x { int, void ()* }]*> [#uses=0]
void %__mf_init() {
entry:
ret void
}
void %__mf_fini() {
entry:
ret void
}