1 /* Test gcov multiple paths to file. */
2
3 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
4 /* { dg-do run { target native } } */
5
6 #if !RECURSIVE
7 #define RECURSIVE 1
8 #include "./gcov-15.c"
9 #undef RECURSIVE
10 #endif
11
12 static void __attribute__ ((noinline)) Recursive (void);
13
14
15 #if RECURSIVE
16 static void __attribute__ ((noinline))
17 Recursive ()
18 {
19 return; /* count(1) */
20 }
21
22 #else
23 int main ()
24 {
25 Recursive (); /* count(1) */
26 return 0;
27 }
28 #endif
29
30 /* { dg-final { run-gcov { -a gcov-15.c } } } */