Mercurial > projects > dstress
view run/default_argument_03.d @ 1605:392a442e2d64
Use tuple value instead of tuple type as asm arg!
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 07 Apr 2009 17:42:12 +0200 |
parents | 38ea1bb385b6 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.default_argument_03; int test(bool b=1){ return b; } int main(){ assert(test()==1); assert(test(true)==1); assert(test(false)==0); return 0; }