]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.hp/foll-fork.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / foll-fork.c
1 #include <stdio.h>
2
3 void callee (i)
4 int i;
5 {
6 printf("callee: %d\n", i);
7 }
8
9 main ()
10 {
11 int pid;
12 int v = 5;
13
14 pid = fork ();
15 if (pid == 0)
16 {
17 v++;
18 /* printf ("I'm the child!\n"); */
19 }
20 else
21 {
22 v--;
23 /* printf ("I'm the proud parent of child #%d!\n", pid); */
24 }
25 }