view tests/mini/m.d @ 1060:599e3d6d0dbd

Remove a dead variable from ldmd. (It used to be used to pass an extra -help to ldc when no files were specified, but we handle that in ldc itself now)
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 08 Mar 2009 09:57:20 +0100
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*,...);