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.
6 RUN: %clangxx %p/Inputs/bolt_icf.cpp -g -Wl,-q -o %t.exe
7 RUN: llvm-bolt %t.exe --relocs -o %t --max-funcs=2
8 RUN: llvm-objdump -d -j .text %t | FileCheck %s
10 ## Check that there are only two functions in the dump of .text