1 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
2 ; RUN: %lli %s > /dev/null
3 ; UNSUPPORTED: target={{.*}}-darwin{{.*}}
4 @var = global i32 1, align 4
5 @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @ctor_func, ptr null }]
6 @llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @dtor_func, ptr null }]
8 define i32 @main() nounwind {
10 %0 = load i32, ptr @var, align 4
14 define internal void @ctor_func() section ".text.startup" {
16 store i32 0, ptr @var, align 4
20 define internal void @dtor_func() section ".text.startup" {