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 --discard-all %t.in.o %t.out.o 6RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefixes=SYMBOLS 7 8RUN: llvm-objcopy -x %t.in.o %t.out-x.o 9RUN: cmp %t.out.o %t.out-x.o 10 11RUN: cp %t.in.o %t.strip-x.o 12RUN: llvm-strip -x %t.strip-x.o 13RUN: cmp %t.out.o %t.strip-x.o 14 15RUN: cp %t.in.o %t.strip-discard-all.o 16RUN: llvm-strip --discard-all %t.strip-discard-all.o 17RUN: cmp %t.out.o %t.strip-discard-all.o 18 19SYMBOLS: SYMBOL TABLE: 20SYMBOLS-NEXT: external 21SYMBOLS-NEXT: external_undefined 22SYMBOLS-NEXT: external_undefined_unreferenced 23SYMBOLS-PRE-NEXT: local_unreferenced 24SYMBOLS-NEXT: local_referenced 25SYMBOLS-NEXT: local_undefined_unreferenced 26SYMBOLS-PRE-NEXT: @feat.00 27SYMBOLS-EMPTY: 28