1 ## Test that a relocation's symbol can be an integer (symbol index).
3 # RUN: yaml2obj %s -o %t
4 ## LLVM tools (both llvm-readobj and llvm-objdump) reject relocations with
5 ## invalid symbol indexes, so inspect the hex contents instead.
6 # RUN: llvm-readobj -x .rela.text %t | FileCheck %s
8 # CHECK: Hex dump of section '.rela.text':
9 # CHECK-NEXT: 0x00000000 00000000 00000000 02000000 42000000
10 # Symbol index 0x42 --^
11 # CHECK-NEXT: 0x00000010 00000000 00000000 00000000 00000000
12 # CHECK-NEXT: 0x00000020 02000000 01000000 00000000 00000000
13 # Symbol index 0x01 --^