[gdb/testsuite] Reduce errors after gdb exit in default_gdb_start
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota3.c
CommitLineData
6009d884
AC
1#include <stdio.h>
2#include <signal.h>
3
6009d884 4
6009d884
AC
5void
6handle_USR1 (int sig)
7{
8}
6009d884
AC
9
10int value;
11
6009d884
AC
12int
13main (void)
6009d884 14{
2c8910ba 15 int my_array[3] = { 1, 2, 3 }; /* break main */
6009d884
AC
16
17 value = 7;
18
19#ifdef SIGUSR1
20 signal (SIGUSR1, handle_USR1);
21#endif
22
23 printf ("value is %d\n", value);
24 printf ("my_array[2] is %d\n", my_array[2]);
25
26 {
27 int i;
28 for (i = 0; i < 5; i++)
2c8910ba 29 value++; /* increment value */
6009d884
AC
30 }
31
2c8910ba 32 return 0; /* after loop */
6009d884
AC
33}
34
This page took 1.744347 seconds and 4 git commands to generate.