1125
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ David L. Davis <SpottedTiger@yahoo.com>
|
|
6 // @date@ 2005-09-22
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5054
|
1125
|
8
|
|
9 module dstress.run.v.variadic_argument_07_F;
|
|
10
|
|
11 int counter;
|
|
12
|
1560
|
13 void test(dstring s){
|
1125
|
14 if(s != "string"){
|
|
15 assert(0);
|
|
16 }
|
|
17 counter++;
|
|
18 }
|
|
19
|
|
20 void test(...){
|
|
21 assert(0);
|
|
22 }
|
|
23
|
|
24 int main(){
|
|
25 if(counter != 0){
|
|
26 assert(0);
|
|
27 }
|
|
28
|
1560
|
29 dstring x = "string";
|
1125
|
30
|
1560
|
31 test(x);
|
1125
|
32 if(counter != 1){
|
|
33 assert(0);
|
|
34 }
|
|
35
|
|
36 return 0;
|
|
37 }
|