Mercurial > projects > ldc
view tests/mini/m.d @ 974:815e1b8c6b00
Allow 'return exp;' for void main().
It's unfortunate that for main the llvm type and D type don't match up...
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 17 Feb 2009 18:53:15 +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*,...);