Mercurial > projects > dstress
view run/default_argument_04.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | b2fad05c7d55 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.default_argument_04; int test(char[] a="abc"){ if(a is null){ return -1; }else{ return a.length; } } int main(){ assert(test()==3); assert(test("")==0); assert(test(null)==-1); assert(test("ab")==2); return 0; }