1## Test that -o sets the output file name.
2
3# RUN: rm -f %t
4# RUN: yaml2obj %s -o %t
5# RUN: ls %t
6# RUN: rm -f %t
7# RUN: yaml2obj %s -o%t
8# RUN: ls %t
9
10# RUN: not yaml2obj -o %p/path/does/not/exist 2>&1 | FileCheck %s
11
12# CHECK: yaml2obj: error: failed to open '{{.*}}/path/does/not/exist': {{[Nn]}}o such file or directory
13
14!ELF
15FileHeader:
16  Class:   ELFCLASS64
17  Data:    ELFDATA2LSB
18  Type:    ET_REL
19  Machine: EM_NONE
20