gcov-2.c 333 B

1234567891011121314151617181920212223
  1. /* Test Gcov basics. */
  2. /* { dg-options "-fprofile-arcs -ftest-coverage -g" } */
  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. int a_variable = 0;
  15. /* { dg-final { run-gcov gcov-2.c } } */