5e0696bf8615a070e884ddc3113c7df85df01923
[oota-llvm.git] / test / tools / sancov / covered_functions.test
1 REQUIRES: x86_64-linux
2 RUN: sancov -obj %p/Inputs/test-linux_x86_64 -covered-functions %p/Inputs/test-linux_x86_64.sancov | FileCheck %s
3 RUN: sancov -obj %p/Inputs/test-linux_x86_64 -covered-functions -strip_path_prefix=Inputs/ %p/Inputs/test-linux_x86_64.sancov | FileCheck --check-prefix=STRIP_PATH %s
4 RUN: sancov -obj %p/Inputs/test-linux_x86_64 -demangle=0 -covered-functions %p/Inputs/test-linux_x86_64.sancov | FileCheck --check-prefix=NO_DEMANGLE %s
5
6 CHECK: Inputs{{[/\\]}}test.cpp:12 bar(std::string)
7 CHECK: Inputs{{[/\\]}}test.cpp:14 main
8
9 STRIP_PATH: {{^}}test.cpp:12 bar(std::string)
10 STRIP_PATH: {{^}}test.cpp:14 main
11
12 NO_DEMANGLE: test.cpp:12 _Z3barSs
13 NO_DEMANGLE: test.cpp:14 main