1 ; RUN: %lli_mcjit %s > /dev/null 2 @var = global i32 1, align 4 3 @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @ctor_func }] 4 @llvm.global_dtors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @dtor_func }] 5 6 define i32 @main() nounwind { 7 entry: 8 %0 = load i32* @var, align 4 9 ret i32 %0 10 } 11 12 define internal void @ctor_func() section ".text.startup" { 13 entry: 14 store i32 0, i32* @var, align 4 15 ret void 16 } 17 18 define internal void @dtor_func() section ".text.startup" { 19 entry: 20 ret void 21 } 22