[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / llvm / test / MC / MachO / AArch64 / reloc-crash.s
blob4a6eb0486c75f577d3abe496200a9d1e31d2c730
1 ; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s
3 ; Test tha we produce an external relocation. There is no apparent need for it, but
4 ; ld64 (241.9) crashes if we don't.
6 ; CHECK: Relocations [
7 ; CHECK-NEXT: Section __bar {
8 ; CHECK-NEXT: Relocation {
9 ; CHECK-NEXT: Offset: 0x0
10 ; CHECK-NEXT: PCRel: 0
11 ; CHECK-NEXT: Length: 3
12 ; CHECK-NEXT: Type: ARM64_RELOC_UNSIGNED (0)
13 ; CHECK-NEXT: Symbol: Lbar
14 ; CHECK-NEXT: }
15 ; CHECK-NEXT: }
16 ; CHECK-NEXT: ]
18 .section __TEXT,__cstring
19 Lfoo:
20 .asciz "Hello World!"
21 Lbar:
22 .asciz "cString"
24 .section __foo,__bar,literal_pointers
25 .quad Lbar