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.
4 # RUN: not yaml2obj %s --docnum=3 2>&1 | FileCheck %s
5 # CHECK: yaml2obj: error: cannot find the 3rd document
7 # RUN: not yaml2obj %s --docnum=76768677 2>&1 | FileCheck %s --check-prefix=TWO
8 # TWO: yaml2obj: error: cannot find the 76768677th document