aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-21.c
blob: 3395422166a082f9c902cf522173cc058d9b790a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "-fcondition-coverage" } */

/* https://gcc.gnu.org/pipermail/gcc-patches/2022-April/592927.html */
char trim_filename_name;
int r;

void trim_filename() {
    if (trim_filename_name)
	r = 123;
    while (trim_filename_name)
	;
}

int main ()
{
}