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