blob: 569bc8aed2f3691b16282925255ddca2fdbc9a8a [file] [log] [blame]
Martin Storsjofb909202019-01-11 14:13:04 +00001RUN: yaml2obj %p/Inputs/discard-locals.yaml > %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
8SYMBOLS: SYMBOL TABLE:
9SYMBOLS-NEXT: external
10SYMBOLS-NEXT: external_undefined
Martin Storsjo4b0694b2019-01-14 18:56:47 +000011SYMBOLS-PRE-NEXT: external_undefined_unreferenced
Martin Storsjofb909202019-01-11 14:13:04 +000012SYMBOLS-PRE-NEXT: local_unreferenced
13SYMBOLS-NEXT: local_referenced
14SYMBOLS-PRE-NEXT: local_undefined_unreferenced
Martin Storsjo4707fb62019-01-14 18:56:27 +000015SYMBOLS-PRE-NEXT: @feat.00
Martin Storsjofb909202019-01-11 14:13:04 +000016SYMBOLS-EMPTY: