xref: /openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/async.c (revision b725ae7711052a2233e31a66fefb8a752c388d7a)
1 
2 
3 #ifdef PROTOTYPES
4 int
foo(void)5 foo (void)
6 #else
7 int
8 foo ()
9 #endif
10 {
11  int x, y;
12 
13  x = 5;
14  y = 3;
15 
16  return x + y;
17 }
18 
19 #ifdef PROTOTYPES
20 int
main(void)21 main (void)
22 #else
23 int
24 main ()
25 #endif
26 {
27  int y, z;
28 
29  y = 2;
30  z = 9;
31  y = foo ();
32  z = y;
33  y = y + 2;
34  y = baz ();
35  return 0;
36 }
37 
38 
39 #ifdef PROTOTYPES
40 int
baz(void)41 baz (void)
42 #else
43 int
44 baz ()
45 #endif
46 {
47   return 5;
48 }
49