Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / tests / tcg / cris / libc / check_openpf2.c
blob5d56189f8eaa77225b478f1391926feccc9b4a14
1 /* 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). */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <errno.h>
8 int main (int argc, char *argv[])
10 FILE *f = fopen ("check_openpf2.c", "rb");
11 if (f == NULL)
12 abort ();
13 fclose(f);
14 printf ("pass\n");
15 return 0;