Statistics
| Branch: | Revision:

root / tests / tcg / cris / check_stat2.c @ c09015dd

History | View | Annotate | Download (284 Bytes)

1 dd43edf4 ths
/*
2 dd43edf4 ths
#notarget: cris*-*-elf
3 dd43edf4 ths
*/
4 dd43edf4 ths
5 dd43edf4 ths
#include <sys/types.h>
6 dd43edf4 ths
#include <sys/stat.h>
7 dd43edf4 ths
#include <unistd.h>
8 dd43edf4 ths
#include <stdio.h>
9 dd43edf4 ths
#include <stdlib.h>
10 dd43edf4 ths
11 dd43edf4 ths
int main (void)
12 dd43edf4 ths
{
13 dd43edf4 ths
  struct stat buf;
14 dd43edf4 ths
15 dd43edf4 ths
  if (lstat (".", &buf) != 0
16 dd43edf4 ths
      || !S_ISDIR (buf.st_mode))
17 dd43edf4 ths
    abort ();
18 dd43edf4 ths
  printf ("pass\n");
19 dd43edf4 ths
  exit (0);
20 dd43edf4 ths
}