llvm/llvm/test/tools/llvm-ifs/ifs-read-basic.test

# RUN: llvm-ifs --output-ifs=- %s | FileCheck %s

--- !ifs-v1
SoName: somelib.so
IfsVersion: 3.0
Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
Symbols:
  - { Name: foo, Type: Func }
  - { Name: bar, Type: Object, Size: 42 }
  - { Name: baz, Type: Object, Size: 8 }
  - { Name: not, Type: Object, Size: 128, Undefined: true }
  - { Name: nor, Type: Func, Undefined: true }
...

# CHECK:      --- !ifs-v1
# CHECK-NEXT: IfsVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
# CHECK-NEXT: SoName: somelib.so
# CHECK-NEXT: Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
# CHECK-NEXT: Symbols:
# CHECK-NEXT:   - { Name: bar, Type: Object, Size: 42 }
# CHECK-NEXT:   - { Name: baz, Type: Object, Size: 8 }
# CHECK-NEXT:   - { Name: foo, Type: Func }
# CHECK-NEXT:   - { Name: nor, Type: Func, Undefined: true }
# CHECK-NEXT:   - { Name: not, Type: Object, Size: 128, Undefined: true }
# CHECK-NEXT: ...