blob: 4817773599955cf2f6b97b8182f802628d85759f [file] [log] [blame]
// PR gcov-profile/86536
// { dg-options "-fprofile-arcs -ftest-coverage" }
// { dg-do run { target native } }
// { dg-require-fork "" }
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
int
main (void)
{
int j = 22; /* count(1) */
/* returns(200) */
fork (); /* count(1) */
/* returns(end) */
int i = 7; /* count(2) */
return 0; /* count(2) */
}
// { dg-final { run-gcov branches calls { -b gcov-pr86536.c } } }