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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [openpf2.c] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* Check that the simulator has chdir:ed to the --sysroot argument
2
#sim: --sysroot=@srcdir@
3
   (or that  --sysroot is applied to relative file paths).  */
4
 
5
#include <stdio.h>
6
#include <stdlib.h>
7
#include <errno.h>
8
int main (int argc, char *argv[])
9
{
10
  FILE *f = fopen ("openpf2.c", "rb");
11
  if (f == NULL)
12
    abort ();
13
  close (f);
14
  printf ("pass\n");
15
  return 0;
16
}

powered by: WebSVN 2.1.0

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