Mercurial > projects > dstress
view run/s/string_postfix_06_C.d @ 1604:cc724d521a34
Add note about possible issues with test case depending on switch scopes.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 28 Mar 2009 19:17:58 +0100 |
parents | 36bedfa079e6 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.s.string_postfix_06_C; int test(string a){ return a.length; } int test(wstring a){ return a.length + 100; } int test(dstring a){ return a.length + 10000; } int main(){ assert(test("a"d "b"d)==10002); return 0; }