1 /* Check that gcov correctly rounds nearly zero to nonzero and nearly
4 Copyright (C) 2002 Free Software Foundation, Inc.
5 Contributed by Nathan Sidwell <nathan@codesourcery.com>
8 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
9 /* { dg-do run { target native } } */
18 if (i > 0) /* branch(1) */
20 else if (i < 0) /* branch(100) */
28 if (i == 0) /* branch(99) */
30 else if (i > 0) /* branch(0)*/
41 for (ix = 0; ix != 1000; ix++)
42 t += foo (ix) + baz (ix);
47 /* { dg-final { run-gcov branches {-b gcov-8.c } } } */