annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
1 // $HeadURL$
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
2 // $Date$
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
3 // $Author$
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
4
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
5 // @author@ David L. Davis <SpottedTiger@yahoo.com>
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
6 // @date@ 2005-09-22
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1125
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5054
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
8
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
9 module dstress.run.v.variadic_argument_07_B;
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
10
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
11 int counter;
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
12
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
13 void test(string s){
1125
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
14 if(s != "string"){
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
15 assert(0);
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
16 }
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
17 counter++;
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
18 }
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
19
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
20 void test(...){
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
21 assert(0);
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
22 }
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
23
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
24 int main(){
1125
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
25 if(counter != 0){
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
26 assert(0);
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
27 }
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
28
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
29 test("string");
1125
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
30 if(counter != 1){
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
31 assert(0);
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
32 }
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
33
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
34 test(cast(string)"string");
1125
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
35 if(counter != 2){
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
36 assert(0);
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
37 }
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
38
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
39 test("string"c);
1125
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
40 if(counter != 3){
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
41 assert(0);
a929acac9127 various test case fixes
thomask
parents: 682
diff changeset
42 }
682
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
43
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
44 return 0;
8a97cee4e7a0 David L. Davis <SpottedTiger@yahoo.com>
thomask
parents:
diff changeset
45 }