2 #sim: --sysroot=@exedir@
11 int main (int argc, char *argv[])
13 char path[1024] = "/";
16 strncat(path, argv[0], sizeof(path) - 2);
17 if (stat (".", &buf) != 0
18 || !S_ISDIR (buf.st_mode))
20 if (stat (path, &buf) != 0
21 || !S_ISREG (buf.st_mode))