diff options
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests/gcov-9.c')
-rw-r--r-- | gcc/testsuite/gcc.misc-tests/gcov-9.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/gcov-9.c b/gcc/testsuite/gcc.misc-tests/gcov-9.c new file mode 100644 index 0000000..6e1b4a8 --- /dev/null +++ b/gcc/testsuite/gcc.misc-tests/gcov-9.c @@ -0,0 +1,15 @@ +/* Test gcov block mode. */ + +/* { dg-options "-fprofile-arcs -ftest-coverage" } */ +/* { dg-do run { target native } } */ + +int main () +{ + unsigned ix; + + for (ix = 10; ix--;); /* count(11) */ + + return 0; +} + +/* { dg-final { run-gcov { -a gcov-9.c } } } */ |