OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Copyright updates for 2007.
[pf3gnuchains/pf3gnuchains4x.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
void
10
handle_USR1 (sig)
11
int sig;
12
{
13
}
14
15
int value;
16
17
int
18
main ()
19
{
20
int my_array[3] = { 1, 2, 3 };
21
22
value = 7;
23
24
#ifdef SIGUSR1
25
signal (SIGUSR1, handle_USR1);
26
#endif
27
28
printf ("value is %d\n", value);
29
printf ("my_array[2] is %d\n", my_array[2]);
30
31
return 0;
32
}
33