Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.misc-tests/gcov-pr84758.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { dg-options "-fprofile-arcs -ftest-coverage" } */ /* { dg-do run { target native } } */ int x, y; static void foo (int a, int b) { { if (a == 1 || a == 2) /* count(1) */ { x = 4; /* count(1) */ if (b == 3) /* count(1) */ x = 6; /* count(1) */ } else x = 15; /* count(#####) */ } } int main (void) { foo (2, 3); return 0; } /* { dg-final { run-gcov gcov-pr84758.c } } */