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