7d423e0960cb619807eff1eb361535d7da6c52ea
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota1.c
1 #include <stdio.h>
2 #include <signal.h>
3
4 #ifdef __sh__
5 #define signal(a,b) /* Signals not supported on this target - make them go away */
6 #endif
7
8
9 #ifdef PROTOTYPES
10 void
11 handle_USR1 (int sig)
12 {
13 }
14 #else
15 void
16 handle_USR1 (sig)
17 int sig;
18 {
19 }
20 #endif
21
22 int value;
23
24 #ifdef PROTOTYPES
25 int
26 main (void)
27 #else
28 int
29 main ()
30 #endif
31 {
32 int my_array[3] = { 1, 2, 3 };
33
34 value = 7;
35
36 #ifdef SIGUSR1
37 signal (SIGUSR1, handle_USR1);
38 #endif
39
40 printf ("value is %d\n", value);
41 printf ("my_array[2] is %d\n", my_array[2]);
42
43 return 0;
44 }
45
This page took 0.044832 seconds and 3 git commands to generate.