xref: /aosp_15_r20/external/llvm/test/tools/sancov/covered_functions.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerREQUIRES: x86_64-linux
2*9880d681SAndroid Build Coastguard WorkerRUN: sancov -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
3*9880d681SAndroid Build Coastguard WorkerRUN: sancov -covered-functions -strip_path_prefix=Inputs/ %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck --check-prefix=STRIP_PATH %s
4*9880d681SAndroid Build Coastguard WorkerRUN: sancov -demangle=0 -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck --check-prefix=NO_DEMANGLE %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard WorkerCHECK: Inputs{{[/\\]}}test.cpp:12 bar(std::string)
7*9880d681SAndroid Build Coastguard WorkerCHECK: Inputs{{[/\\]}}test.cpp:14 main
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard WorkerSTRIP_PATH: {{^}}test.cpp:12 bar(std::string)
10*9880d681SAndroid Build Coastguard WorkerSTRIP_PATH: {{^}}test.cpp:14 main
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard WorkerNO_DEMANGLE: test.cpp:12 _Z3barSs
13*9880d681SAndroid Build Coastguard WorkerNO_DEMANGLE: test.cpp:14 main
14