llvm/llvm/test/tools/yaml2obj/ELF/symbol-value.yaml

## Check we can set different values for symbols.

# RUN: yaml2obj %s -o %t
# RUN: llvm-readelf --symbols %t | FileCheck %s

--- !ELF
FileHeader:
  Class: ELFCLASS64
  Data:  ELFDATA2LSB
  Type:  ET_REL
Symbols:
## No "Value" key was set. Check the behaviour is the
## same as if it was set to 0.
  - Name:  aaa
# CHECK:    Num: Value            {{.*}} Name
# CHECK:      1: 0000000000000000 {{.*}} aaa
## The "Value" key is explicitly set to 0x0.
  - Name:  bbb
    Value: 0x0
## Check we can use the "=<none>" syntax.
# CHECK-NEXT: 2: 0000000000000000 {{.*}} bbb
  - Name:  ccc
    Value: [[EVAL=<none>]]
# CHECK-NEXT: 3: 0000000000000000 {{.*}} ccc
## The "Value" key is explicitly set to an arbitrary value.
## Here we use UINT64_MAX to check this boundary case.
  - Name:  ddd
    Value: 0xffffffffffffffff
# CHECK-NEXT: 4: ffffffffffffffff {{.*}} ddd
## The same as the previous case, but using decimal values.
  - Name:  eee
    Value: 18446744073709551615
# CHECK-NEXT: 5: ffffffffffffffff {{.*}} eee