Mercurial > projects > ldc
view tests/README @ 1317:4099548c80e0
Allocate objects on the stack if they (a) don't have a destructor, and
(b) don't override the delete operator (on top of the regular conditions for
stack allocation that also apply to arrays, structs, etc.).
The "no destructor" clause is not strictly necessary, but calling them at the
right time would be tricky to say the least; it would involve, among other
things, "manually" inserting a try-finally block around anything that might
throw exceptions not caught in the current function.
Note: objects with custom new operators are automatically ignored because they
don't use the regular allocation runtime call, so there's no need to pay special
attention to them.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 09 May 2009 00:50:15 +0200 |
parents | e6b5e742daa5 |
children |
line wrap: on
line source
We have two different test sets. For the test drivers you need do compile the .d files in this folder with a Phobos D compiler. To run the 'mini' test suite run ./runminitests To run the DStress based tests execute ./runtest tmp-sensible-name and then use ./findregressions old-results new-results to display a list of regressions. You can download old result files from http://www.incasoftware.de/~kamm/ldc/reference