comparison run/s/string_postfix_06_B.d @ 1560:36bedfa079e6

D1 -> D2 : 2/N
author thomask
date Sun, 19 Aug 2007 19:15:01 +0000
parents 1e6afb94ce6d
children
comparison
equal deleted inserted replaced
1559:ec5e144583ea 1560:36bedfa079e6
2 // $Date$ 2 // $Date$
3 // $Author$ 3 // $Author$
4 4
5 module dstress.run.s.string_postfix_06_B; 5 module dstress.run.s.string_postfix_06_B;
6 6
7 int test(char[] a){ 7 int test(string a){
8 return a.length; 8 return a.length;
9 } 9 }
10 10
11 int test(wchar[] a){ 11 int test(wstring a){
12 return a.length + 100; 12 return a.length + 100;
13 } 13 }
14 14
15 int test(dchar[] a){ 15 int test(dstring a){
16 return a.length + 10000; 16 return a.length + 10000;
17 } 17 }
18 18
19 int main(){ 19 int main(){
20 assert(test("a"w "b"w)==102); 20 assert(test("a"w "b"w)==102);