PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-dump-1.C
blobf0e81e9b042549b028581f9ab50632a3d31c8e93
1 /* { dg-options "-fprofile-generate -ftest-coverage -lgcov" } */
2 /* { dg-do run { target native } } */
4 int value;
6 extern "C" { void __gcov_dump(void); }
8 int main(int argc, char **argv)
10   value = 123;                                  /* count(1) */
12   for (unsigned i = 0; i < 100; i++)
13     value += argc;                              /* count(100) */
15   __gcov_dump();
17   for (unsigned i = 0; i < 1000; i++)           /* count(#####) */
18     value += argc;
20   return 0;                                     /* count(#####) */
23 /* { dg-final { run-gcov gcov-dump-1.C } } */