dmd/compiler/test/runnable/test23343.c
2024-06-11 07:20:29 +02:00

12 lines
252 B
C

/* DISABLED: win linux freebsd openbsd osx32 dragonflybsd netbsd
*/
/* https://issues.dlang.org/show_bug.cgi?id=23343
*/
int open(const char*, int, ...) asm("_" "open");
int main(){
int fd = open("/dev/null", 0);
return fd >= 0 ? 0 : 1;
}