OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [time2.c] - Diff between revs 24 and 33

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);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.