repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add tests for recent getopt changes.
[glibc.git]
/
elf
/
tst-unique1mod2.c
blob
c07551582793149e002bf8754565dbc73ef10137
1
#include <config.h>
2
3
#ifdef HAVE_ASM_UNIQUE_OBJECT
4
# define S(s) _S (s)
5
# define _S(s) #s
6
7
asm
(
".data;"
8
S
(
ASM_GLOBAL_DIRECTIVE
)
" var
\n
"
9
".type var, "
S
(
ASM_TYPE_DIRECTIVE_PREFIX
)
"gnu_unique_object
\n
"
10
".size var, 4
\n
"
11
"var:.zero 4
\n
"
12
".previous"
);
13
extern
int
var
;
14
15
int
16
f
(
int
*
p
)
17
{
18
return
&
var
!=
p
|| *
p
!=
1
;
19
}
20
#endif