1# RUN: not llvm-ifs --input-format=ELF --output-format=IFS --output=%t %s 2>&1 | FileCheck %s
2
3--- !ifs-v1
4SoName: somelib.so
5IfsVersion: 3.0
6Target: { ObjectFormat: ELF, Arch: AArch64, Endianness: little, BitWidth: 64 }
7Symbols:
8  - { Name: foo, Type: Func }
9  - { Name: bar, Type: Object, Size: 42 }
10  - { Name: baz, Type: Object, Size: 8 }
11  - { Name: not, Type: Object, Undefined: true, Size: 128 }
12  - { Name: nor, Type: Func, Undefined: true }
13...
14
15# CHECK: The file was not recognized as a valid object file
16# CHECK: No file readers succeeded reading `{{.*}}read-ifs-as-elf.test` (unsupported/malformed file?)
17