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
ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-elf
/
pr13250-3.c
blob
a22767094b02f88d3fd1fe8a05fe92d588530a46
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
common1
[
1
];
5
char
common2
[
2
];
6
7
extern
int
bar
();
8
9
int
10
main
()
11
{
12
int
i
;
13
if
(
bar
() != -
1
)
14
abort
();
15
if
(
common1
[
0
] != -
1
)
16
abort
();
17
for
(
i
=
0
;
i
<
sizeof
(
common2
)/
sizeof
(
common2
[
0
]);
i
++)
18
if
(
common2
[
i
] !=
0
)
19
abort
();
20
printf
(
"PASS
\n
"
);
21
return
0
;
22
}