mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[JITLink] Add testcase that was accidentally left out of 19e402d2b34.
This commit is contained in:
parent
5098c69ed1
commit
c2126ffe7e
@ -0,0 +1,26 @@
|
||||
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %s
|
||||
# RUN: llvm-jitlink -noexec %t
|
||||
#
|
||||
# Check that JITLink handles MachO sections with the same section name but
|
||||
# different segment names.
|
||||
|
||||
.section __TEXT,__text,regular,pure_instructions
|
||||
.build_version macos, 11, 0 sdk_version 11, 1
|
||||
.globl _main
|
||||
.p2align 4, 0x90
|
||||
_main: ## @main
|
||||
xorl %eax, %eax
|
||||
retq
|
||||
|
||||
.section __TEXT,__const
|
||||
.globl _a
|
||||
_a:
|
||||
.quad 42
|
||||
|
||||
.section __DATA,__const
|
||||
.globl _b
|
||||
.p2align 3
|
||||
_b:
|
||||
.quad 42
|
||||
|
||||
.subsections_via_symbols
|
Loading…
x
Reference in New Issue
Block a user