1# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t.o %s 2# RUN: llvm-jitlink -noexec %t.o 3# 4# Check that the mere presence of initializers doesn't cause failures. 5# (Initializers would not be run, even if -noexec were absent, since we're 6# not loading the ORC runtime in this test) 7 8 .section __TEXT,__text,regular,pure_instructions 9 .macosx_version_min 10, 14 sdk_version 10, 15 10 11 .globl _main 12_main: 13 retq 14 15 .section __TEXT,__StaticInit,regular,pure_instructions 16 .p2align 4, 0x90 17_foo: 18 retq 19 20 21 .section __DATA,__mod_init_func,mod_init_funcs 22 .p2align 3 23 .quad _foo 24 25.subsections_via_symbols 26