1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
2 // UNSUPPORTED: target={{.*(linux|solaris).*}}
16 assert(!stat("/dev/null", &st
));
18 type
= S_ISCHR(st
.st_mode
) ? S_IFCHR
: S_IFBLK
;
20 #if defined(__NetBSD__)
21 assert(!devname_r(st
.st_rdev
, type
, name
, sizeof(name
)));
23 assert(devname_r(st
.st_rdev
, type
, name
, sizeof(name
)));