Mercurial > projects > dstress
comparison run/v/variadic_argument_07_F.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_F; | 9 module dstress.run.v.variadic_argument_07_F; |
10 | 10 |
11 int counter; | 11 int counter; |
12 | 12 |
13 void test(dchar[] s){ | 13 void test(dstring s){ |
14 if(s != "string"){ | 14 if(s != "string"){ |
15 assert(0); | 15 assert(0); |
16 } | 16 } |
17 counter++; | 17 counter++; |
18 } | 18 } |
24 int main(){ | 24 int main(){ |
25 if(counter != 0){ | 25 if(counter != 0){ |
26 assert(0); | 26 assert(0); |
27 } | 27 } |
28 | 28 |
29 dchar[] string = "string"; | 29 dstring x = "string"; |
30 | 30 |
31 test(string); | 31 test(x); |
32 if(counter != 1){ | 32 if(counter != 1){ |
33 assert(0); | 33 assert(0); |
34 } | 34 } |
35 | 35 |
36 return 0; | 36 return 0; |