Mercurial > projects > dstress
view run/mini/m.d @ 1628:c6ef09dfba4d
add mini test set from ldc project
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Mon, 10 Jan 2011 19:47:18 +0100 |
parents | |
children |
line wrap: on
line source
void main() { int* e = __errno_location(); printf("&errno = %p\n", e); printf("errno = %d\n", *e); } extern(C): version(darwin) { int* __error(); alias __error __errno_location; } else version (Windows) { int* strerror(); alias strerror __errno_location; } else { int* __errno_location(); } int printf(char*,...);