1 # RUN: llvm-mc -triple=x86_64-pc-linux-musl %s | FileCheck --check-prefix=PRINT %s
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-musl %s -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # PRINT: .reloc 2, R_X86_64_NONE, .data
7 # PRINT-NEXT: .reloc 1, R_X86_64_NONE, foo+4
8 # PRINT-NEXT: .reloc 0, R_X86_64_NONE, 8
10 # CHECK: 0x2 R_X86_64_NONE .data 0x0
11 # CHECK-NEXT: 0x1 R_X86_64_NONE foo 0x4
12 # CHECK-NEXT: 0x0 R_X86_64_NONE - 0x8
18 .reloc 2, R_X86_64_NONE, .data
19 .reloc 1, R_X86_64_NONE, foo+4
20 .reloc 0, R_X86_64_NONE, 8