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 53/57][Arm][OBJDUMP] Add support for MVE instructions: vand, vbrsr, vcls,...
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-size
/
size-4a.c
blob
b11089b8041f28c7f243e5066334648080039532
1
#include <stdio.h>
2
3
char
bar
[
10
];
4
char
foo
[
20
] = {
1
} ;
5
extern
int
bar_size1
(
void
);
6
extern
int
bar_size2
(
void
);
7
extern
int
foo_size1
(
void
);
8
extern
int
foo_size2
(
void
);
9
10
int
11
main
()
12
{
13
int
size
;
14
15
size
=
bar_size1
();
16
if
(
size
==
sizeof
(
bar
) &&
bar_size2
() ==
size
)
17
printf
(
"OK
\n
"
);
18
19
size
=
foo_size1
();
20
if
(
size
==
sizeof
(
foo
) &&
foo_size2
() ==
size
)
21
printf
(
"OK
\n
"
);
22
23
return
0
;
24
}