1 ## Check that obj2yaml reports a suitable error when it encounters
2 ## invalid content in Symbol.
4 ## Error1: failed to get the section name for a symbol.
5 # RUN: yaml2obj %s --docnum=1 -o %t1
6 # RUN: not obj2yaml %t1 2>&1 | FileCheck %s -DFILE=%t1 --check-prefix=ERROR1
8 # ERROR1: Error reading file: [[FILE]]: the section index (2) is invalid
18 ## Error2: failed to get the symbol name.
19 # RUN: yaml2obj %s --docnum=2 -o %t2
20 # RUN: not obj2yaml %t2 2>&1 | FileCheck %s -DFILE=%t2 --check-prefix=ERROR2
22 # ERROR2: Error reading file: [[FILE]]: entry with offset 0x4 in a string table with size 0x4 is invalid