Mercurial > projects > ldc
view tests/mini/m.d @ 1185:8baf611f0009
Fix nested references to 'ref' foreach variables.
These "walk around" the array being iterated over, so they're a bit trickier
than other variables to get right.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 01 Apr 2009 00:01:44 +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*,...);