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