1RUN: yaml2obj %p/Inputs/discard-locals.yaml -o %t.in.o 2 3RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE 4 5RUN: llvm-objcopy --strip-unneeded %t.in.o %t.out.o 6RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS 7 8RUN: llvm-objcopy --strip-unneeded-symbol=external_undefined_unreferenced \ 9RUN: --strip-unneeded-symbol=local_unreferenced \ 10RUN: --strip-unneeded-symbol=local_undefined_unreferenced \ 11RUN: --strip-unneeded-symbol='@feat.00' \ 12RUN: %t.in.o %t.out2.o 13RUN: cmp %t.out.o %t.out2.o 14 15SYMBOLS: SYMBOL TABLE: 16SYMBOLS-NEXT: external 17SYMBOLS-NEXT: external_undefined 18SYMBOLS-PRE-NEXT: external_undefined_unreferenced 19SYMBOLS-PRE-NEXT: local_unreferenced 20SYMBOLS-NEXT: local_referenced 21SYMBOLS-PRE-NEXT: local_undefined_unreferenced 22SYMBOLS-PRE-NEXT: @feat.00 23SYMBOLS-EMPTY: 24