OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [cris/] [c/] [time2.c] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 jlechner
/* 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
}

powered by: WebSVN 2.1.0

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