a73458124cba12bfeae11237834fcccc4721be00
[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: test.cpp:12 _Z3barSs
13 NO_DEMANGLE: test.cpp:14 main