~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to tests/cris/check_stat1.c

  • Committer: ths
  • Date: 2007-05-05 19:24:38 UTC
  • Revision ID: git-v1:608e8ce280cee231b3de0e7922060efd23447a54
Linker scripts for MIPS hosts.


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

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <sys/types.h>
2
 
#include <sys/stat.h>
3
 
#include <unistd.h>
4
 
#include <stdio.h>
5
 
#include <stdlib.h>
6
 
 
7
 
int main (void)
8
 
{
9
 
  struct stat buf;
10
 
 
11
 
  if (stat (".", &buf) != 0
12
 
      || !S_ISDIR (buf.st_mode))
13
 
    abort ();
14
 
  printf ("pass\n");
15
 
  exit (0);
16
 
}