xref: /llvm-project/bolt/test/max-funcs.test (revision c4e60a7f6045efc317087f964341f74a3f1b6446)
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