Mercurial > projects > dstress
changeset 862:095c4b3c140b
Unknown W. Brackets <unknown@simplemachines.org>
2006-02-19
news:dtb7ee$gjq$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 24 Feb 2006 07:26:23 +0000 |
parents | cb9e1f41478c |
children | 26b89d5cb8f6 |
files | undefined/default_argument_10.d |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/default_argument_10.d Fri Feb 24 07:26:23 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Unknown W. Brackets <unknown@simplemachines.org> +// @date@ 2006-02-19 +// @uri@ news:dtb7ee$gjq$1@digitaldaemon.com + +module dstress.undefined.default_argument_10; + +void test(out int i = 5){ + assert(i == 5); +} + +int main(){ + int i; + test(i); + + assert(i == 5); + + return 0; +} +