Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.misc-tests/gcov-pr85332.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { dg-options "-fprofile-arcs -ftest-coverage" } */ /* { dg-do run { target native } } */ int doit(int sel, int n, void *p) { int * const p0 = p; switch (sel) { case 0: /* count(3) */ do {*p0 += *p0;} while (--n); /* count(3) */ return *p0 == 0; /* count(1) */ default: __builtin_abort (); } } int main() { int v0; v0 = 1; doit(0, 3, &v0); __builtin_exit (0); } /* { dg-final { run-gcov gcov-pr85332.c } } */