URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
/* CB_SYS_time doesn't implement the Linux time syscall; the return
|
/* CB_SYS_time doesn't implement the Linux time syscall; the return
|
value isn't written to the argument. */
|
value isn't written to the argument. */
|
|
|
#include <time.h>
|
#include <time.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
time_t x = (time_t) -1;
|
time_t x = (time_t) -1;
|
time_t t = time (&x);
|
time_t t = time (&x);
|
|
|
if (t == (time_t) -1 || t != x)
|
if (t == (time_t) -1 || t != x)
|
abort ();
|
abort ();
|
printf ("pass\n");
|
printf ("pass\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.