~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to tests/cris/check_time2.c

  • Committer: blueswir1
  • Date: 2007-09-25 17:30:09 UTC
  • Revision ID: git-v1:eb296a0a03eebd2d73718d31cd0d8a8db0b804de
 Remove the target dependency introduced by previous patch


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3239 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
}