Mercurial > projects > dstress
comparison run/v/variadic_argument_07_B.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | b8c0195059d9 |
children |
comparison
equal
deleted
inserted
replaced
1559:ec5e144583ea | 1560:36bedfa079e6 |
---|---|
8 | 8 |
9 module dstress.run.v.variadic_argument_07_B; | 9 module dstress.run.v.variadic_argument_07_B; |
10 | 10 |
11 int counter; | 11 int counter; |
12 | 12 |
13 void test(char[] s){ | 13 void test(string s){ |
14 if(s != "string"){ | 14 if(s != "string"){ |
15 assert(0); | 15 assert(0); |
16 } | 16 } |
17 counter++; | 17 counter++; |
18 } | 18 } |
29 test("string"); | 29 test("string"); |
30 if(counter != 1){ | 30 if(counter != 1){ |
31 assert(0); | 31 assert(0); |
32 } | 32 } |
33 | 33 |
34 test(cast(char[])"string"); | 34 test(cast(string)"string"); |
35 if(counter != 2){ | 35 if(counter != 2){ |
36 assert(0); | 36 assert(0); |
37 } | 37 } |
38 | 38 |
39 test("string"c); | 39 test("string"c); |