mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Add test for constructor and destructor sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30b51d90f4
commit
b2a69a1923
16
test/CodeGen/ARM/ctors_dtors.ll
Normal file
16
test/CodeGen/ARM/ctors_dtors.ll
Normal 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user