URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
/* Check that the simulator has chdir:ed to the --sysroot argument
|
/* Check that the simulator has chdir:ed to the --sysroot argument
|
#sim: --sysroot=@srcdir@
|
#sim: --sysroot=@srcdir@
|
(or that --sysroot is applied to relative file paths). */
|
(or that --sysroot is applied to relative file paths). */
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <errno.h>
|
#include <errno.h>
|
int main (int argc, char *argv[])
|
int main (int argc, char *argv[])
|
{
|
{
|
FILE *f = fopen ("openpf2.c", "rb");
|
FILE *f = fopen ("openpf2.c", "rb");
|
if (f == NULL)
|
if (f == NULL)
|
abort ();
|
abort ();
|
close (f);
|
close (f);
|
printf ("pass\n");
|
printf ("pass\n");
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.