gcov-1.c 309 B

123456789101112131415161718192021
  1. /* Test Gcov basics. */
  2. /* { dg-options "-fprofile-arcs -ftest-coverage" } */
  3. /* { dg-do run { target native } } */
  4. void noop ()
  5. {
  6. }
  7. int main ()
  8. {
  9. int i;
  10. for (i = 0; i < 10; i++) /* count(11) */
  11. noop (); /* count(10) */
  12. return 0; /* count(1) */
  13. }
  14. /* { dg-final { run-gcov gcov-1.c } } */