Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.misc-tests / gcov-11.c
bloba1037a552a94edcaab53228d849c0413185313b9
1 /* Test gcov block mode. */
3 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
4 /* { dg-do run { target native } } */
6 int one = 1; /* subvert constant folder. */
7 int zero = 0;
9 int foo (int ix)
11 return ix & 1 ? one : zero; /* count(10) */
14 int main ()
16 unsigned ix, jx = 0;
18 for (ix = 10; ix--;) jx += foo (ix); /* count(11) */
20 return jx != 5;
23 /* { dg-final { run-gcov { -a gcov-11.c } } } */