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
The C++ 2011 std::call_once function is specified to allow
[glibc.git]
/
elf
/
tst-tls11.c
blob
8ceac14168bdbcc74d774958cc465fa87722f320
1
#include
"tst-tls10.h"
2
3
#define CHECK(N, S) \
4
p = f##N##a (); \
5
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
6
abort ()
7
8
static int
9
do_test
(
void
)
10
{
11
struct
A
*
p
;
12
check1
();
13
check2
();
14
CHECK
(
1
,
4
);
15
CHECK
(
2
,
22
);
16
CHECK
(
3
,
10
);
17
CHECK
(
4
,
25
);
18
CHECK
(
5
,
16
);
19
CHECK
(
6
,
19
);
20
CHECK
(
7
,
22
);
21
CHECK
(
8
,
25
);
22
CHECK
(
9
,
28
);
23
CHECK
(
10
,
31
);
24
25
exit
(
0
);
26
}
27
28
#define TEST_FUNCTION do_test ()
29
#include
"../test-skeleton.c"