1 // Test that the runtime correctly interposes atexit.
3 // RUN: %clang -c -o %t %s
4 // RUN: %llvm_jitlink %t
7 // OnExit destructor resets the test result override to zero.
10 .type on_exit,@function
14 b llvm_jitlink_setTestResultOverride
16 .size on_exit, .Lfunc_end0-on_exit
18 // main registers the atexit and sets the test result to one.
24 stp x29, x30, [sp, #-16]!
27 ldr x0, [x0, :got_lo12:on_exit]
30 ldp x29, x30, [sp], #16
33 .size main, .Lfunc_end1-main