xref: /llvm-project/llvm/test/tools/llvm-profdata/profile-symbol-list.test (revision ad03f4079289697fa201e191e9995c35ac7bf180)
1; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile.proftext -o %t.1.output
2; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-2.text %S/Inputs/sample-profile.proftext -o %t.2.output
3; RUN: llvm-profdata merge -sample -extbinary %t.1.output %t.2.output -o %t.3.output
4; RUN: llvm-profdata show -sample -show-prof-sym-list %t.3.output > %t.4.output
5; RUN: diff -b %S/Inputs/profile-symbol-list.expected %t.4.output
6; RUN: llvm-profdata merge -sample -extbinary --drop-profile-symbol-list %t.1.output %t.2.output -o %t.5.output
7; RUN: llvm-profdata show -sample -show-sec-info-only %t.5.output  | FileCheck %s -check-prefix=NOSYMLIST
8
9; NOSYMLIST: ProfileSymbolListSection {{.*}} Size: 0
10