repo.or.cz
/
qemu
/
agraf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git]
/
tests
/
tcg
/
cris
/
check_time2.c
blob
20b69b4f60b8b6ae02bef3e5da65d92e45a19476
1
/* CB_SYS_time doesn't implement the Linux time syscall; the return
2
value isn't written to the argument. */
3
4
#include <time.h>
5
#include <stdio.h>
6
#include <stdlib.h>
7
8
int
9
main
(
void
)
10
{
11
time_t
x
= (
time_t
) -
1
;
12
time_t
t
=
time
(&
x
);
13
14
if
(
t
== (
time_t
) -
1
||
t
!=
x
)
15
abort
();
16
printf
(
"pass
\n
"
);
17
exit
(
0
);
18
}