Strenghten assumption about function start and end line (PR gcov-profile/88045).
authorMartin Liska <mliska@suse.cz>
Mon, 19 Nov 2018 08:16:17 +0000 (09:16 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 19 Nov 2018 08:16:17 +0000 (08:16 +0000)
commit390e529e2b98983de392b3d9b9b57c4a1258b080
tree82e44c5460111671c6f34fa52668334ee91c8496
parentca44d7f40afa39b40cfa2ac85521a65d1743ef7a
Strenghten assumption about function start and end line (PR gcov-profile/88045).

2018-11-19  Martin Liska  <mliska@suse.cz>

PR gcov-profile/88045
* coverage.c (coverage_begin_function): Add assert.
2018-11-19  Martin Liska  <mliska@suse.cz>

PR gcov-profile/88045
* g++.dg/gcov/pr88045.C: New test.

From-SVN: r266262
gcc/ChangeLog
gcc/coverage.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/pr88045.C [new file with mode: 0644]