0e110b164829bbd83f075a28695bd293bc9f7502
[oota-llvm.git] / test / tools / sancov / covered_functions.test
1 RUN: sancov -obj %p/Inputs/test-linux_x86_64 -covered_functions %p/Inputs/test-linux_x86_64.sancov | FileCheck %s
2 RUN: sancov -obj %p/Inputs/test-linux_x86_64 -covered_functions %p/Inputs/test-linux_x86_64-1.sancov | FileCheck --check-prefix=MULTIPLE_FILES %s
3 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
4
5 CHECK: Inputs/test.cpp:12 bar(std::string)
6 CHECK: Inputs/test.cpp:14 main
7
8 MULTIPLE_FILES: {{^}}foo.cpp:5 foo()
9 MULTIPLE_FILES: {{^}}test.cpp:12 bar(std::string)
10 MULTIPLE_FILES: {{^}}test.cpp:14 main
11
12 NO_DEMANGLE: Inputs/test.cpp:12 _Z3barSs
13 NO_DEMANGLE: Inputs/test.cpp:14 main