1 # Check merged args produce identical output to when not merged.
2 RUN: llvm-readelf -aeWhSrnudlVgIs %p/Inputs/trivial.obj.elf-i386 > %t.merged
3 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
4 RUN: cmp %t.merged %t.not-merged
5 RUN: FileCheck %s --input-file %t.merged
7 # llvm-readobj does not support merged args, because it also supports some old
8 # flags (-st, -sd, etc.), and it would be confusing if only some merged args
10 RUN: not llvm-readobj -aeWhSrnudlVgIs %p/Inputs/trivial.obj.elf-i386 2>&1 | FileCheck %s --check-prefix=UNKNOWN
12 CHECK-NOT: Unknown command line argument
13 UNKNOWN: for the --section-headers option: may only occur zero or one times!