brintos

brintos / llvm-project-archived public Read only

0
0
Text · 437 B · c7cd7be Raw
14 lines · plain
1## Check that --max-funcs=<N> option works properly in llvm-bolt,2## resulting in processing of no more than N functions in the binary.3 4REQUIRES: system-linux5 6RUN: %clangxx %p/Inputs/bolt_icf.cpp -g -Wl,-q -o %t.exe7RUN: llvm-bolt %t.exe --relocs -o %t --max-funcs=28RUN: llvm-objdump -d -j .text %t | FileCheck %s9 10## Check that there are only two functions in the dump of .text11CHECK: <{{.*}}>:12CHECK: <{{.*}}>:13CHECK-NOT: <{{.*}}>:14