repo.or.cz
/
binutils-gdb
/
blckswan.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gdb/testsuite: fix gdb.trace/signal.exp on x86
[binutils-gdb/blckswan.git]
/
gdb
/
testsuite
/
gdb.base
/
shr1.c
blob
da7bffa2efd421f272e62280d6dafa2c76d3750f
1
#include
"ss.h"
2
#include <stdio.h>
3
4
typedef
float
f
;
5
6
float
sg
=
5.5
;
7
int
sgi
=
2
;
8
static int
sgs
=
7
;
9
10
int
shr1
(
int
x
)
11
{
12
f mumble
;
13
int
l
;
14
l
=
1
;
15
{
16
int
l
;
17
l
=
2
;
18
}
19
mumble
=
7.7
;
20
sg
=
6.6
;
21
sgi
++;
22
sgs
=
8
;
23
printf
(
"address of sgs is %p
\n
"
, &
sgs
);
24
return
2
*
x
;
25
}
26
27
static int
shr1_local
(
int
x
)
28
{
29
return
2
*
x
;
30
}
31
32
int
structarg
(
struct
s x
)
33
{
34
return
x
.
a
;
35
}
36
37
int
pstructarg
(
struct
s
*
x
)
38
{
39
return
x
->
a
;
40
}
41
42
43