1 /* Check that execution counts for template functions
2 are reported correctly by gcov. */
7 /* { dg-options "-fprofile-arcs -ftest-coverage -fno-inline" } */
8 /* { dg-do run { target native } } */
13 A(int c) { count = c; }
14 void func(void) { printf("func\n"); }
16 return (count == 0) ? true : (count-- != 0);
18 void run(void) { abort(); }
23 void WithoutBrace(T *a) {
25 a->run(); /* count(#####) */
33 a->run(); /* count(#####) */
50 /* { dg-final { run-gcov gcov-5.C } } */