annotate run/v/variadic_argument_07_E.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
1125
a929acac9127 various test case fixes
thomask
parents:
diff changeset
1 // $HeadURL$
a929acac9127 various test case fixes
thomask
parents:
diff changeset
2 // $Date$
a929acac9127 various test case fixes
thomask
parents:
diff changeset
3 // $Author$
a929acac9127 various test case fixes
thomask
parents:
diff changeset
4
a929acac9127 various test case fixes
thomask
parents:
diff changeset
5 // @author@ David L. Davis <SpottedTiger@yahoo.com>
a929acac9127 various test case fixes
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
1125
a929acac9127 various test case fixes
thomask
parents:
diff changeset
8
a929acac9127 various test case fixes
thomask
parents:
diff changeset
9 module dstress.run.v.variadic_argument_07_E;
a929acac9127 various test case fixes
thomask
parents:
diff changeset
10
a929acac9127 various test case fixes
thomask
parents:
diff changeset
11 int counter;
a929acac9127 various test case fixes
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:
diff changeset
14 if(s != "string"){
a929acac9127 various test case fixes
thomask
parents:
diff changeset
15 assert(0);
a929acac9127 various test case fixes
thomask
parents:
diff changeset
16 }
a929acac9127 various test case fixes
thomask
parents:
diff changeset
17 counter++;
a929acac9127 various test case fixes
thomask
parents:
diff changeset
18 }
a929acac9127 various test case fixes
thomask
parents:
diff changeset
19
a929acac9127 various test case fixes
thomask
parents:
diff changeset
20 void test(...){
a929acac9127 various test case fixes
thomask
parents:
diff changeset
21 assert(0);
a929acac9127 various test case fixes
thomask
parents:
diff changeset
22 }
a929acac9127 various test case fixes
thomask
parents:
diff changeset
23
a929acac9127 various test case fixes
thomask
parents:
diff changeset
24 int main(){
a929acac9127 various test case fixes
thomask
parents:
diff changeset
25 if(counter != 0){
a929acac9127 various test case fixes
thomask
parents:
diff changeset
26 assert(0);
a929acac9127 various test case fixes
thomask
parents:
diff changeset
27 }
a929acac9127 various test case fixes
thomask
parents:
diff changeset
28
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
29 string x = "string";
1125
a929acac9127 various test case fixes
thomask
parents:
diff changeset
30
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
31 test(x);
1125
a929acac9127 various test case fixes
thomask
parents:
diff changeset
32 if(counter != 1){
a929acac9127 various test case fixes
thomask
parents:
diff changeset
33 assert(0);
a929acac9127 various test case fixes
thomask
parents:
diff changeset
34 }
a929acac9127 various test case fixes
thomask
parents:
diff changeset
35
a929acac9127 various test case fixes
thomask
parents:
diff changeset
36 return 0;
a929acac9127 various test case fixes
thomask
parents:
diff changeset
37 }