Mercurial > projects > ldc
diff tangotests/debug2.d @ 245:d61ce72c39ab trunk
[svn r262] Fixed debug info for normal function parameters.
Fixed debug info for pointers to basic types.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 12:43:16 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tangotests/debug2.d Mon Jun 09 12:43:16 2008 +0200 @@ -0,0 +1,15 @@ +module tangotests.debug2; + +import tango.stdc.stdlib : rand; + +void main() +{ + size_t iter; + while (iter < 25) + { + if (rand() % 20 == 10) + *cast(int*)null = 0; + ++iter; + } + assert(0); +}