1## Test running llvm-ifs without specifying a valid target.
2
3# RUN: not llvm-ifs --output=%t %s 2>&1 | FileCheck %s --check-prefix=MISSING
4# RUN: not llvm-ifs  --output-format=nope --output=%t %s 2>&1 | FileCheck %s --check-prefix=INVALID
5
6--- !ifs-v1
7SoName: somelib.so
8IfsVersion: 3.0
9Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
10Symbols: []
11...
12
13# MISSING: {{llvm-ifs(\.exe)?}}: for the --output-format option: must be specified at least once!
14
15# INVALID: {{llvm-ifs(\.exe)?}}: for the --output-format option: Cannot find option named 'nope'!
16