xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cris/c/openpf2.c (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1 /* Check that the simulator has chdir:ed to the --sysroot argument
2 #sim: --sysroot=$srcdir/$subdir
3    (or that  --sysroot is applied to relative file paths).  */
4 
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <errno.h>
main(int argc,char * argv[])8 int main (int argc, char *argv[])
9 {
10   FILE *f = fopen ("openpf2.c", "rb");
11   if (f == NULL)
12     abort ();
13   fclose (f);
14   printf ("pass\n");
15   return 0;
16 }
17