1 RUN: yaml2obj %p/Inputs/discard-locals.yaml > %t.in.o
3 RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
5 RUN: llvm-objcopy --discard-all %t.in.o %t.out.o
6 RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefixes=SYMBOLS
8 RUN: llvm-objcopy -x %t.in.o %t.out-x.o
9 RUN: cmp %t.out.o %t.out-x.o
11 RUN: cp %t.in.o %t.strip-x.o
12 RUN: llvm-strip -x %t.strip-x.o
13 RUN: cmp %t.out.o %t.strip-x.o
15 RUN: cp %t.in.o %t.strip-discard-all.o
16 RUN: llvm-strip --discard-all %t.strip-discard-all.o
17 RUN: cmp %t.out.o %t.strip-discard-all.o
19 SYMBOLS: SYMBOL TABLE:
20 SYMBOLS-NEXT: external
21 SYMBOLS-NEXT: external_undefined
22 SYMBOLS-NEXT: external_undefined_unreferenced
23 SYMBOLS-PRE-NEXT: local_unreferenced
24 SYMBOLS-NEXT: local_referenced
25 SYMBOLS-NEXT: local_undefined_unreferenced
26 SYMBOLS-PRE-NEXT: @feat.00