repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH 5/57][Arm][GAS] Add support for MVE instructions: vmull{b,t}
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
shmain.c
blob
932b83477e2a948853ebd23523be2af6d553fab3
1
/* A test */
2
3
#include
"ss.h"
4
#include <stdio.h>
5
6
#include
"../lib/unbuffer_output.c"
7
8
extern
int
structarg
(
struct
s
);
9
extern
int
pstructarg
(
struct
s
*);
10
extern
int
shr1
(
int
);
11
extern
int
shr2
(
int
);
12
extern
float
sg
;
13
14
int
eglob
;
15
16
struct
{
17
int
a
;
18
int
b
;
19
}
s
;
20
21
int
g
;
22
23
int
local_structarg
(
struct
s x
)
24
{
25
return
x
.
b
;
26
}
27
28
int
mainshr1
(
int
g
)
29
{
30
return
2
*
g
;
31
}
32
33
int
main
()
34
{
35
struct
s y
;
36
37
gdb_unbuffer_output
();
38
39
g
=
1
;
40
g
=
shr1
(
g
);
41
g
=
shr2
(
g
);
42
g
=
mainshr1
(
g
);
43
sg
=
1.1
;
44
y
.
a
=
3
;
45
y
.
b
=
4
;
46
g
=
local_structarg
(
y
);
47
g
=
structarg
(
y
);
48
g
=
pstructarg
(&
y
);
49
return
0
;
50
}