1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
10 void test_fdevname() {
11 int fd
= open("/dev/null", O_RDONLY
);
14 printf("test_fdevname\n");
16 assert((name
= fdevname(fd
)));
22 void test_fdevname_r() {
23 int fd
= open("/dev/null", O_RDONLY
);
27 printf("test_fdevname_r\n");
29 assert((name
= fdevname_r(fd
, buf
, sizeof(buf
))));
38 // CHECK: test_fdevname
40 // CHECK: test_fdevname_r