Mercurial > projects > ldc
view tests/mini/m.d @ 1332:de7fad0ad243
Added testcase for #288 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sun, 10 May 2009 14:37:30 +0200 |
parents | d2d6107e4ec2 |
children | efa34a3bb8fc |
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 { int* __errno_location(); } int printf(char*,...);