* gdb.base/help.exp: Remove testing of individual command help text,
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota3.c
CommitLineData
6009d884
AC
1#include <stdio.h>
2#include <signal.h>
3
6009d884
AC
4
5#ifdef PROTOTYPES
6void
7handle_USR1 (int sig)
8{
9}
10#else
11void
12handle_USR1 (sig)
13 int sig;
14{
15}
16#endif
17
18int value;
19
20#ifdef PROTOTYPES
21int
22main (void)
23#else
24int
25main ()
26#endif
27{
2c8910ba 28 int my_array[3] = { 1, 2, 3 }; /* break main */
6009d884
AC
29
30 value = 7;
31
32#ifdef SIGUSR1
33 signal (SIGUSR1, handle_USR1);
34#endif
35
36 printf ("value is %d\n", value);
37 printf ("my_array[2] is %d\n", my_array[2]);
38
39 {
40 int i;
41 for (i = 0; i < 5; i++)
2c8910ba 42 value++; /* increment value */
6009d884
AC
43 }
44
2c8910ba 45 return 0; /* after loop */
6009d884
AC
46}
47
This page took 0.979824 seconds and 4 git commands to generate.