Alexey Karyakin 183beb33d7
[llvm-objcopy] Check for missing argument values (#70710)
Report an error if a required value for a command line argument is
missing.
2024-05-22 09:38:44 -05:00

7 lines
429 B
Plaintext

## An error must be reported if a required argument value is missing.
# RUN: not llvm-objcopy --only-section 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE-ONLY-SECTION %s
# CHECK-NO-VALUE-ONLY-SECTION: error: argument to '--only-section' is missing (expected 1 value(s))
# RUN: not llvm-objcopy -O 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE-O %s
# CHECK-NO-VALUE-O: error: argument to '-O' is missing (expected 1 value(s))