]> git.ipfire.org Git - people/ms/gcc.git/commit
gcov: test line count for label in then/else block
authorJørgen Kvalsvik <jorgen.kvalsvik@woven-planet.global>
Fri, 7 Oct 2022 11:29:20 +0000 (13:29 +0200)
committerJørgen Kvalsvik <jorgen.kvalsvik@woven-planet.global>
Fri, 14 Oct 2022 08:46:28 +0000 (10:46 +0200)
commit98fef35ad1d017bb86f50afe69e25c128a1a1be2
tree102bd098aff7c07a7706aa4cfc816477d98d6c1b
parent4b04292b76e89b332ae70208aabf8f0e12f3a63f
gcov: test line count for label in then/else block

Add a test to catch regression in line counts for labels on top of
then/else blocks. Only the 'goto <label>' should contribute to the line
counter for the label, not the if.

gcc/testsuite/ChangeLog:

* gcc.misc-tests/gcov-4.c: New testcase.
gcc/testsuite/gcc.misc-tests/gcov-4.c