diff options
| author | Calixte Denizet <cdenizet@mozilla.com> | 2018-10-30 18:41:41 +0000 |
|---|---|---|
| committer | Calixte Denizet <cdenizet@mozilla.com> | 2018-10-30 18:41:41 +0000 |
| commit | 4b0c66deb368bd2f953035dff847a49ea404a4b9 (patch) | |
| tree | 91bccf065827e18c36da8ff2d8fad04823c5e005 /compiler-rt/test/profile/instrprof-gcov-one-line-function.test | |
| parent | 38d50545feb7faffec8b8bbbb40661d21babf6af (diff) | |
| download | bcm5719-llvm-4b0c66deb368bd2f953035dff847a49ea404a4b9.tar.gz bcm5719-llvm-4b0c66deb368bd2f953035dff847a49ea404a4b9.zip | |
[GCOV] Add a test for function defined on one line (follow-up of https://reviews.llvm.org/D53600)
Summary: Add a test for coverage for function definition like void foo() { }.
Reviewers: marco-c
Reviewed By: marco-c
Subscribers: delcypher, llvm-commits, #sanitizers, sylvestre.ledru
Differential Revision: https://reviews.llvm.org/D53601
llvm-svn: 345625
Diffstat (limited to 'compiler-rt/test/profile/instrprof-gcov-one-line-function.test')
| -rw-r--r-- | compiler-rt/test/profile/instrprof-gcov-one-line-function.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler-rt/test/profile/instrprof-gcov-one-line-function.test b/compiler-rt/test/profile/instrprof-gcov-one-line-function.test new file mode 100644 index 00000000000..d67c21a863b --- /dev/null +++ b/compiler-rt/test/profile/instrprof-gcov-one-line-function.test @@ -0,0 +1,9 @@ +RUN: mkdir -p %t.d +RUN: cd %t.d + +RUN: %clang --coverage -o %t %S/Inputs/instrprof-gcov-one-line-function.c +RUN: test -f instrprof-gcov-one-line-function.gcno +RUN: rm -f instrprof-gcov-one-line-function.gcda +RUN: %run %t +RUN: llvm-cov gcov instrprof-gcov-one-line-function.gcda +RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-gcov-one-line-function.c.gcov %S/Inputs/instrprof-gcov-one-line-function.c.gcov |

