28 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -triple=x86_64-apple-macos10.9 -filetype=obj -o %t %s3# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \4# RUN: | FileCheck %s5#6# Verify that PC-begin candidate symbols have been sorted correctly when adding7# PC-begin edges for FDEs. In this test both _main and _X are at address zero,8# however we expect to select _main over _X as _X is common. If the sorting9# fails we'll trigger an assert in EHFrameEdgeFixer, otherwise this test will10# succeed.11#12# CHECK: Graphifying C-string literal section __TEXT,__cstring13# CHECK: Created block {{.*}} -- {{.*}}, align = 16, align-ofs = 0 for "abcdefghijklmno"14 15 .section __TEXT,__text,regular,pure_instructions16 .build_version macos, 12, 017 .globl _main18 .p2align 4, 0x9019_main:20 retq21 22 .section __TEXT,__cstring,cstring_literals23 .p2align 424L_.str.1:25 .asciz "abcdefghijklmno"26 27.subsections_via_symbols28