Mercurial > projects > dstress
annotate run/v/variadic_argument_06_B.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 3753adcf5c3a |
children |
rev | line source |
---|---|
916
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
2 // $Date$ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
3 // $Author$ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
4 |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
5 // @author@ Unknown W. Brackets <unknown@simplemachines.org> |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
6 // @date@ 2005-06-11 |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4296 |
916
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
8 // @desc@ expression.c:272: void functionArguments(Loc, Scope*, TypeFunction*, Array*): Assertion `0' failed |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
9 |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
10 module dstress.run.v.variadic_argument_06_B; |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
11 |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
12 void test(int[] i ...){ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
13 if(i.length != 1){ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
14 assert(0); |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
15 } |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
16 |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
17 if(i[0] != 7){ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
18 assert(0); |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
19 } |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
20 } |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
21 |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
22 int main(){ |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
23 int j = 7; |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
24 test(j); |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
25 |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
26 return 0; |
3753adcf5c3a
partial(S .. X) review of test cases with unexpected results
thomask
parents:
diff
changeset
|
27 } |