1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
3 // UNSUPPORTED: darwin, target={{.*(linux|solaris).*}}
15 struct fstab
*fentry
= getfsent();
20 struct fstab
*pentry
= getfsspec(fentry
->fs_spec
);
23 struct fstab
*wentry
= getfsfile(fentry
->fs_file
);
25 assert(!memcmp(fentry
, wentry
, sizeof(*wentry
)));
26 assert(!memcmp(pentry
, wentry
, sizeof(*pentry
)));
28 printf("First entry: device block '%s', mounted with '%s'\n",
29 fentry
->fs_spec
, fentry
->fs_mntops
);
35 // CHECK: First entry: device block '{{.*}}', mounted with '{{.*}}'