>>103 試してみた
$ gcc --version
gcc (GCC) 4.3.4 20090804 (release) 1
...
$ gcc -O0 -fprofile-arcs -ftest-coverage -o test test.c
$ ./test
5
$ gcov test.c
...
$cat test.c.gcov
 -:  0:Source:test.c
 -:  0:Graph:test.gcno
 -:  0:Data:test.gcda
 -:  0:Runs:1
 -:  0:Programs:1
 -:  1:#include <stdio.h>
 -:  2:int main()
 1:  3:{
 1:  4:  int i = 0;
 -:  5:
 7:  6:  while (i < 5) {
 5:  7:    i++;
 -:  8:  }
 1:  9:  printf("%d\n", i);
 1: 10:  return 0;
 -: 11:}