Mercurial > projects > dstress
annotate run/s/string_postfix_06_C.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | 1e6afb94ce6d |
children |
rev | line source |
---|---|
736 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.s.string_postfix_06_C; | |
6 | |
1560 | 7 int test(string a){ |
736 | 8 return a.length; |
9 } | |
10 | |
1560 | 11 int test(wstring a){ |
736 | 12 return a.length + 100; |
13 } | |
14 | |
1560 | 15 int test(dstring a){ |
736 | 16 return a.length + 10000; |
17 } | |
18 | |
19 int main(){ | |
20 assert(test("a"d "b"d)==10002); | |
21 return 0; | |
22 } |