summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-9.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests/gcov-9.c')
-rw-r--r--gcc/testsuite/gcc.misc-tests/gcov-9.c15
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 000000000..6e1b4a85c
--- /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 } } } */