annotate run/m/mixin_17_D.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 9dcac8d4e97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
873
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
1 // $HeadURL$
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
2 // $Date$
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
3 // $Author$
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
4
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
6 // @date@ 2006-02-24
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1091
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6360
873
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
8
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
9 // @WARNING@ direct use of Phobos
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
10
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
11 module dstress.run.m.mixin_17_D;
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
12
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
13 import std.stdarg;
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
14
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
15 int status;
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
16
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
17 void dummy(...){
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
18 if(_arguments.length != 1){
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
19 assert(0);
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
20 }
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
21 status = va_arg!(int)(_argptr);;
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
22 }
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
23
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
24 template mix(){
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
25 int i;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 873
diff changeset
26
873
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
27 void test(){
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
28 dummy(i);
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
29 }
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
30 }
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
31
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
32 int main(){
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 873
diff changeset
33 assert(status == 0);
873
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
34
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
35 mixin mix!();
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
36
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
37 test();
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
38
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
39 if(status != 0){
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
40 assert(0);
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
41 }
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
42
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
43 test();
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
44
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
45 if(status != 0){
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
46 assert(0);
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
47 }
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
48
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
49 return 0;
a309b14fcc64 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
50 }