• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6define i32 @main() nounwind {
7entry:
8  %0 = load i32* @var, align 4
9  ret i32 %0
10}
11
12define internal void @ctor_func() section ".text.startup" {
13entry:
14  store i32 0, i32* @var, align 4
15  ret void
16}
17
18define internal void @dtor_func() section ".text.startup" {
19entry:
20  ret void
21}
22