repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git]
/
ld
/
testsuite
/
ld-pie
/
weakundef-data.c
blob
af411bccbfdb37e17e228f3701a7a6e3e63f388e
1
#include <stdio.h>
2
3
#pragma weak undef_data
4
5
extern
int
undef_data
;
6
int
*
ptr_to_data
= &
undef_data
;
7
8
int
9
main
(
void
)
10
{
11
if
(
ptr_to_data
==
NULL
)
12
printf
(
"PASSED
\n
"
);
13
14
return
0
;
15
}