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
Automatic date update in version.in
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-i386
/
tls-main1.c
blob
5c33744a336ea96bc7751a053a56a5636f97d5ab
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
extern
int
*
get_gd
(
void
);
5
extern
void
set_gd
(
int
);
6
extern
int
test_gd
(
int
);
7
extern
int
*
get_ld
(
void
);
8
extern
void
set_ld
(
int
);
9
extern
int
test_ld
(
int
);
10
11
int
12
main
()
13
{
14
int
*
p
;
15
16
p
=
get_gd
();
17
set_gd
(
3
);
18
if
(*
p
!=
3
|| !
test_gd
(
3
))
19
abort
();
20
21
p
=
get_ld
();
22
set_ld
(
4
);
23
if
(*
p
!=
4
|| !
test_ld
(
4
))
24
abort
();
25
26
printf
(
"PASS
\n
"
);
27
28
return
0
;
29
}