1 /* Test gcov block mode. Compiler generates following CFG:
11 PROF_edge_counter_10 = __gcov0.UuT[0];
12 PROF_edge_counter_11 = PROF_edge_counter_10 + 1;
13 __gcov0.UuT[0] = PROF_edge_counter_11;
16 # ret_1 = PHI <ret_5(3), ret_6(4)>
19 It's important not to include <bb 5> to any line as it's actually shared
20 by both branches of the condition in <bb 3>.
24 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
25 /* { dg-do run { target native } } */
30 unsigned int true_var
= 1;
31 unsigned int false_var
= 0;
34 if (true_var
) /* count(1) */
36 if (false_var
) /* count(1) */
37 ret
= 111; /* count(#####) */
40 ret
= 999; /* count(#####) */
45 main (int argc
, char **argv
)
51 /* { dg-final { run-gcov { -a gcov-17.c } } } */