aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-ifs/read-ifs-with-bad-bitwidth.test
blob: 2a65bde6ece36d54374a110d710490c439876934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## Test reading TBE file with bad bit width.

# RUN: not llvm-ifs --output-ifs=- %s 2>&1 | FileCheck %s

--- !ifs-v1
SoName: somelib.so
IfsVersion: 3.0
Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 65 }
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:      YAML:8:74: error: Unsupported bit width