mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
2626ede61b
Summary: This change enables `cl::Grouping` for short options -- options with names of a single character. This is consistent with GNU getopt behavior. Reviewers: rnk, MaskRay Reviewed By: MaskRay Subscribers: thopre, cfe-commits, MaskRay, rupprecht, hiraditya, llvm-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D61270 llvm-svn: 359917
14 lines
731 B
Plaintext
14 lines
731 B
Plaintext
# Check merged args produce identical output to when not merged.
|
|
RUN: llvm-readelf -aeWhSrnudlVgIs %p/Inputs/trivial.obj.elf-i386 > %t.merged
|
|
RUN: llvm-readelf -a -e -W -h -S -r -n -u -d -l -V -g -I -s %p/Inputs/trivial.obj.elf-i386 > %t.not-merged
|
|
RUN: cmp %t.merged %t.not-merged
|
|
RUN: FileCheck %s --input-file %t.merged
|
|
|
|
# llvm-readobj does not support merged args, because it also supports some old
|
|
# flags (-st, -sd, etc.), and it would be confusing if only some merged args
|
|
# were supported.
|
|
RUN: not llvm-readobj -aeWhSrnudlVgIs %p/Inputs/trivial.obj.elf-i386 2>&1 | FileCheck %s --check-prefix=UNKNOWN
|
|
|
|
CHECK-NOT: Unknown command line argument
|
|
UNKNOWN: for the --section-headers option: may only occur zero or one times!
|