llvm.org GIT mirror llvm / 18952b8 test / tools / llvm-elfabi / tbe-read-basic.test
18952b8

Tree @18952b8 (Download .tar.gz)

tbe-read-basic.test @18952b8raw · history · blame

# RUN: llvm-elfabi %s --emit-tbe=- | FileCheck %s

--- !tapi-tbe
SoName: somelib.so
TbeVersion: 1.0
Arch: x86_64
Symbols:
  foo: { Type: Func }
  bar: { Type: Object, Size: 42 }
  baz: { Type: Object, Size: 8 }
  not: { Type: Object, Undefined: true, Size: 128 }
  nor: { Type: Func, Undefined: true }
...

# CHECK:      --- !tapi-tbe
# CHECK-NEXT: TbeVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
# CHECK-NEXT: SoName: somelib.so
# CHECK-NEXT: Arch: x86_64
# CHECK-NEXT: Symbols:
# CHECK-NEXT:   bar: { Type: Object, Size: 42 }
# CHECK-NEXT:   baz: { Type: Object, Size: 8 }
# CHECK-NEXT:   foo: { Type: Func }
# CHECK-NEXT:   nor: { Type: Func, Undefined: true }
# CHECK-NEXT:   not: { Type: Object, Size: 128, Undefined: true }
# CHECK-NEXT: ...