1## Test that an error is reported when a docnum is specified, which is 2## greater than the number of YAML inputs in the file. 3 4# RUN: not yaml2obj %s --docnum=3 2>&1 | FileCheck %s 5# CHECK: yaml2obj: error: cannot find the 3rd document 6 7# RUN: not yaml2obj %s --docnum=76768677 2>&1 | FileCheck %s --check-prefix=TWO 8# TWO: yaml2obj: error: cannot find the 76768677th document 9 10--- !ELF 11FileHeader: 12 Class: ELFCLASS64 13 Data: ELFDATA2LSB 14 Type: ET_DYN 15 16--- !ELF 17FileHeader: 18 Class: ELFCLASS64 19 Data: ELFDATA2LSB 20 Type: ET_DYN 21