]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add gcov MC/DC tests for GDC
authorJørgen Kvalsvik <j@lambda.is>
Wed, 6 Dec 2023 08:08:46 +0000 (09:08 +0100)
committerJørgen Kvalsvik <j@lambda.is>
Thu, 4 Apr 2024 18:29:12 +0000 (20:29 +0200)
commitdc8a25189dd6e10a50751793f08d6c5857bd6131
tree912678d08ec2fd66a59988101a6803456228e6d8
parent08a52331803f66a4aaeaedd278436ca8eac57b50
Add gcov MC/DC tests for GDC

This is a mostly straight port from the gcov-19.c tests from the C test
suite. The only notable differences from C to D are that D flips the
true/false outcomes for loop headers, and the D front end ties loop and
ternary conditions to slightly different locus.

The test for >64 conditions warning is disabled as it either needs
support from the testing framework or a something similar to #pragma GCC
diagnostic push to not cause a test failure from detecting a warning.

gcc/testsuite/ChangeLog:

* gdc.dg/gcov.exp: New test.
* gdc.dg/gcov1.d: New test.
gcc/testsuite/gdc.dg/gcov.exp [new file with mode: 0644]
gcc/testsuite/gdc.dg/gcov1.d [new file with mode: 0644]