xref: /llvm-project/llvm/test/tools/llvm-ifs/output-target-error.test (revision 5e171cebd3bafbf39cdad6294fe26c3952aedbc3)
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: error: at least one output should be specified.
14
15# INVALID: {{llvm-ifs(\.exe)?}}: for the --output-format option: Cannot find option named 'nope'!
16